📱App Development Dashboard Generation (6hr) #2573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "📱App Development Dashboard Generation (6hr)" | |
on: | |
schedule: | |
- cron: "49 1,7,13,19 * * *" | |
workflow_dispatch: | |
env: | |
APP_DIR_REPO: 'clamsproject/apps' | |
jobs: | |
generate: | |
name: "📝 Generate dashboard as a CSV file" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛍 Checkout repository" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_CLAMSBOT_TOKEN }} | |
- name: "🐍 Setup Python" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: "💉 Install pygithub library" | |
run: | | |
pip install PyGithub | |
- name: "🗞 Generate dashboard CSV" | |
run: | | |
python scripts/appdev-dashboard.py ${{ secrets.GH_CLAMSBOT_TOKEN }} > clams-apps-repos.csv | |
- name: "🫙 Commit and push if CSV is changed" | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "clams-bot" | |
git add clams-apps-repos.csv | |
git commit -m "updating app development dashboard file" && git push origin $branch_name || echo 'nothing to commit' |