This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
Check app updates #12120
This file contains 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: Check app updates | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Check for updates | |
run: | | |
git clone https://github.com/runcitadel/app-cli | |
cd app-cli | |
# TODO: Use prebuilts/Docker | |
cargo run --features=cli,dev-tools -- update ../apps --token "${{ secrets.GITHUB_TOKEN }}" | |
cd .. | |
rm -rf app-cli | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git commit -a -m "Update apps" || true | |
git push |