-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.17 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Run CLI
on:
workflow_dispatch:
inputs:
cli_args:
description: "Commands"
default: fetch
required: true
jobs:
run_cli:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repo
uses: actions/checkout@v4
- name: 🐍🛠️ setup python
uses: actions/setup-python@v5
with:
python-version: "3.11"
# File can be encoded to base64 on https://base64.guru/converter/encode/file
- name: 🔑🔓 Decoding Firebase Admin SDK Credentials
run: echo "${{ secrets.ADMIN_SDK_FIREBASE_CREDS }}" | base64 --decode > adminsdk-creds.json
- name: 📦💻 install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 🏃♀️🐍💻 execute py script
run: python main.py ${{ inputs.cli_args }}
- name: 📤📦 Upload file(s) to artifacts
uses: actions/upload-artifact@v4
with:
path: outputs
- name: 📝 Record input(s)
run: |
echo "## Input given:" >> $GITHUB_STEP_SUMMARY
echo \`${{ inputs.cli_args }}\` >> $GITHUB_STEP_SUMMARY