-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
257765c
commit 4b36068
Showing
1 changed file
with
43 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,43 @@ | ||
name: GitHub actions version updater | ||
|
||
on: | ||
# can be used to run workflow manually | ||
workflow_dispatch: | ||
schedule: | ||
# Automatically run on every 27th of every other month | ||
# to release a version for other repo that uses this action | ||
- cron: '0 7 27 */2 *' | ||
|
||
jobs: | ||
self-hosted-status: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
runner-status: ${{ steps.runnerstatus.outputs.status }} | ||
steps: | ||
- name: Check runner status | ||
id: runnerstatus | ||
uses: SatelCreative/satel-gh-runner-check@1.0.1 | ||
with: | ||
github-runner-token: ${{ secrets.SELF_HOSTED_RUNNER_TOKEN }} #Should have access to manage runner | ||
org-name: SatelCreative | ||
|
||
check-versions: | ||
needs: [self-hosted-status] | ||
# saadmk11/github doesn't work on Self hosted runner yet | ||
runs-on: ubuntu-latest #${{ contains(needs.self-hosted-status.outputs.runner-status, 'online') && 'self-hosted' || 'ubuntu-latest' }} | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
# Classic personal access token with repo and workflow scope | ||
token: ${{ secrets.REPO_WORKFLOW_ACCESS_TOKEN }} | ||
|
||
- name: GitHub Actions Version Updater | ||
uses: saadmk11/github-actions-version-updater@v0.8.1 | ||
with: | ||
token: ${{ secrets.REPO_WORKFLOW_ACCESS_TOKEN }} | ||
pull_request_title: '👷 Monthly actions version update' | ||
pull_request_team_reviewers: "DevOps" | ||
pull_request_branch: 'feature/monthly-actions-update' | ||
pull_request_labels: 'Type: DevOps' | ||
update_version_with: "release-tag" | ||
release_types: 'major, minor, patch' |