diff --git a/.github/workflows/actions-version-updater.yml b/.github/workflows/actions-version-updater.yml new file mode 100644 index 00000000..fa812b80 --- /dev/null +++ b/.github/workflows/actions-version-updater.yml @@ -0,0 +1,24 @@ +name: GitHub Actions Version Updater + +on: + schedule: + # 12:00 AM on the first of every month + - cron: '0 0 1 * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + with: + # This requires a personal access token with the privileges to push directly to `main` + token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} + persist-credentials: true + - name: Run GitHub Actions Version Updater + uses: saadmk11/github-actions-version-updater@v0.8.1 + with: + token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} + committer_email: 'bumpversion[bot]@ouranos.ca' + committer_username: 'update-github-actions[bot]' + pull_request_title: '[bot] Update GitHub Action Versions' diff --git a/.github/workflows/auto-bumpversion.yml b/.github/workflows/auto-bumpversion.yml index 11f77c15..7b97b0a9 100644 --- a/.github/workflows/auto-bumpversion.yml +++ b/.github/workflows/auto-bumpversion.yml @@ -39,5 +39,5 @@ jobs: uses: ad-m/github-push-action@master with: force: false - github_token: ${{ secrets.BUMPVERSION_TOKEN }} + github_token: ${{ secrets.BUMP_VERSION_TOKEN }} branch: ${{ github.ref }}