📱App Development Dashboard Generation (8hr) #3640
This file contains hidden or 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 (8hr)" | |
| on: | |
| schedule: | |
| - cron: "49 1,9,17 * * *" | |
| 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 | |
| - 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 "admin@clams.ai" | |
| 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' |