AE Docs Updater Program Run #45
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: AE Docs Updater Program Run | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # Run every day at midnight | |
jobs: | |
run: | |
name: Run Docs Updater Program | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get build run ID | |
run: echo "BUILD_RUN_ID=$(gh run list --json databaseId --workflow=build.yml --limit 1 | jq -r '.[0].databaseId')" >> $GITHUB_ENV | |
- name: Download build | |
uses: actions/download-artifact@v4 | |
with: | |
name: build | |
run-id: ${{ env.BUILD_RUN_ID }} | |
github-token: ${{ env.GH_TOKEN }} | |
- name: Run program | |
run: | | |
git config user.name "GitHub Docs Updater Program Build Bot" | |
git config user.email "<>" | |
chmod u+wrx program | |
./program |