Update Yearly Copyright #1
This file contains hidden or 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
name: Update Yearly Copyright | |
on: | |
workflow_dispatch: | |
schedule: # Run every year on January 1st | |
- cron: "0 0 1 1 *" # UTC time | |
jobs: | |
update-copyright: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout `main` Branch | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
- name: Run copyright script | |
run: ruby ./copyright.rb | |
- name: Create Pull Request | |
# SHA of release v6.1.0 | |
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c | |
with: | |
token: ${{ secrets.PAT }} | |
commit-message: > | |
chore: update yearly copyright | |
title: Update yearly copyright | |
body: > | |
This is an automated pull request to update the yearly copyright. | |
branch: update-yearly-copyright- | |
branch-suffix: timestamp | |
team-reviewers: canyon-gbs-lead-developers |