From dc7019c4c939f488450db6e7cc3dfefb1c178811 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Fri, 31 May 2024 16:27:10 +0300 Subject: [PATCH] ci: update workflow versions weekly, if possible --- .github/workflows/updater.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/updater.yml diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml new file mode 100644 index 00000000..a94c59f9 --- /dev/null +++ b/.github/workflows/updater.yml @@ -0,0 +1,33 @@ +name: GitHub Actions Version Updater +# https://github.com/saadmk11/github-actions-version-updater?tab=readme-ov-file + +# Controls when the action will run. +on: + # can be used to run workflow manually + workflow_dispatch: + schedule: + # Automatically run on every Sunday + - cron: "0 0 * * 0" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + # [Required] Access token with `workflow` scope. + token: ${{ secrets.WORKFLOW_SECRET }} + + - name: Run GitHub Actions Version Updater + uses: saadmk11/github-actions-version-updater@v0.8.1 + # Required to get the PR number + id: gha-update + with: + # [Required] Access token with `workflow` scope. + token: ${{ secrets.WORKFLOW_SECRET }} + skip_pull_request: "false" + - name: Get PR Number + run: + echo "The PR Number is ${{ + steps.gha-update.outputs.GHA_UPDATE_PR_NUMBER }}"