Automatically update apps

This commit is contained in:
Aaron Dewes 2022-01-13 20:14:30 +01:00 committed by GitHub
parent 89f0022f0d
commit 10dfb13fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Check app updates
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for updates
run: |
export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
git clone https://github.com/runcitadel/dev-tools
cd dev-tools
yarn && yarn tsc
yarn citadel-dev appcheck -d ../apps
cd ..
rm -rf dev-tools
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git commit -a -m "Update apps"
git push