Skip to content

appstore-update

appstore-update #1329

name: appstore-update
on:
schedule:
# 5 AM daily
- cron: '0 5 * * *'
workflow_dispatch:
jobs:
appstore-update:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: stats
uses: jbangdev/jbang-action@v0.119.0
with:
script: statsquery2.java --token ${{ secrets.CLOUDFLARE_TOKEN }} --account ${{ secrets.CLOUDFLARE_ACCOUNT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: jbang
uses: jbangdev/jbang-action@v0.119.0
with:
script: .github/appstore.java
env:
GITHUB_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