Backend Check #217
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: Backend Check | |
on: | |
# Allow manually triggering the workflow | |
workflow_dispatch: | |
schedule: | |
# Every hour, on the hour | |
- cron: "0 0 * * *" | |
env: | |
RUST_TOOLCHAIN: stable | |
CHECK_NAME: Backend API | |
jobs: | |
backend_check: | |
name: Backend Status Check | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.AUTOMATED_STATUS_CHECKS }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- run: | | |
cargo run -- -c "${{ env.CHECK_NAME }}" | |
git config --global user.name 'Isaac Donaldson' | |
git config --global user.email '[email protected]' | |
git add assets/ config/ | |
git commit -m "Update status for ${{ env.CHECK_NAME }}" && git push |