Database Check #210
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: Database Check | |
on: | |
# Allow manually triggering the workflow | |
workflow_dispatch: | |
schedule: | |
# Every hour, on the half hour | |
- cron: "5 0 * * *" | |
env: | |
RUST_TOOLCHAIN: stable | |
CHECK_NAME: Database Connection | |
jobs: | |
backend_check: | |
name: Database 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 |