appstore-update #1792
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: appstore-update | |
| on: | |
| schedule: | |
| # 5 AM daily | |
| - cron: '0 5 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| appstore-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jdx/mise-action@v3 | |
| - run: jbang statsquery2.java --token ${{ secrets.CLOUDFLARE_TOKEN }} --account ${{ secrets.CLOUDFLARE_ACCOUNT }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.APPSTORE_GH_TOKEN != '' && secrets.APPSTORE_GH_TOKEN || secrets.GITHUB_TOKEN }} | |
| - run: jbang .github/appstore.java | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.APPSTORE_GH_TOKEN != '' && secrets.APPSTORE_GH_TOKEN || secrets.GITHUB_TOKEN }} | |
| - name: Commit updates | |
| run: | | |
| git config --global user.name 'Max Rydahl Andersen' | |
| git config --global user.email 'max@xam.dk' | |
| git commit -am "App store updates" | |
| git push | |
| - name: Update website | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: benc-uk/workflow-dispatch@v1 | |
| with: | |
| workflow: github-pages | |
| token: ${{ secrets.JEKYLL_PAT }} | |
| repo: jbangdev/jbang.dev | |