cron #26
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: cron | |
on: | |
schedule: | |
# Run daily | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update-versions: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
# Admin user must generate a Personal Access Token with 'workflow' permissions, and used to populate the secret named WORKFLOW_TOKEN. | |
# See: https://stackoverflow.com/questions/68811838/refusing-to-allow-a-personal-access-token-to-create-or-update-workflow | |
# See: https://stackoverflow.com/questions/66643917/refusing-to-allow-a-github-app-to-create-or-update-workflow | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.WORKFLOW_TOKEN }} # This configures the git repo to use this token | |
fetch-depth: 0 # Fetch all branches and tags | |
- shell: pwsh | |
run: | | |
./Update-Versions.ps1 -PR -AutoMergeQueue -AutoRelease | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |