-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update workflow versions weekly, if possible
- Loading branch information
1 parent
6481092
commit dc7019c
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 }}" |