Skip to content

Commit

Permalink
ci: update workflow versions weekly, if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed May 31, 2024
1 parent 6481092 commit dc7019c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
# 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 }}"

0 comments on commit dc7019c

Please sign in to comment.