forked from michael.heier/citadel-apps
Automatically update apps
This commit is contained in:
parent
89f0022f0d
commit
10dfb13fb7
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user