Test Runners Dependabot #62
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: Test Runners Dependabot | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # every Sunday at midnight | |
jobs: | |
check-on-runner-releases: | |
permissions: | |
pull-requests: write | |
contents: write | |
actions: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: fetch latest releases | |
run: | | |
./ci/runner-dependabot --apply | |
git config --global user.name denv-runner-bot | |
git config --global user.email [email protected] | |
git switch -c auto-runner-update | |
git add ci/runners-to-test.json | |
git commit -m "Auto Runner Version Update" || exit 0 | |
git push -fu origin auto-runner-update | |
gh pr create \ | |
--base main \ | |
--head auto-runner-update \ | |
--title "Auto Runner Version Update" \ | |
--body "Written by custom dependabot script that checks for new updates. PR now free to be modified/closed." | |
env: | |
GH_TOKEN: ${{ github.token }} |