-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (36 loc) · 1.09 KB
/
appstore-update.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
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