From 07b55ae629e47f7c2fa7b95d0d3fa3d25f47f493 Mon Sep 17 00:00:00 2001 From: Albert Kottke Date: Mon, 24 Jun 2024 09:17:57 -0700 Subject: [PATCH] Initial commit. --- .github/workflows/updater.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/updater.yaml diff --git a/.github/workflows/updater.yaml b/.github/workflows/updater.yaml new file mode 100644 index 0000000..2ec8dd3 --- /dev/null +++ b/.github/workflows/updater.yaml @@ -0,0 +1,33 @@ +name: GitHub Actions Version Updater + +# Controls when the action will run. +on: + workflow_dispatch: + + schedule: + # Automatically run on every Sunday + - cron: "0 0 * * 0" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.7 + with: + # [Required] Access token with `workflow` scope. + token: ${{ secrets.UPDATER_TOKEN }} + + - name: Remove LFS hooks + # This repository uses Git LFS, but it not being + # in the container causes the action to fail to create a new branch. + # Removing the hooks manually is harmless and works around this issue. + run: | + rm .git/hooks/post-checkout + rm .git/hooks/pre-push + + - name: Run GitHub Actions Version Updater + uses: saadmk11/github-actions-version-updater@v0.8.1 + with: + # [Required] Access token with `workflow` scope. + token: ${{ secrets.UPDATER_TOKEN }}