-
Notifications
You must be signed in to change notification settings - Fork 118
35 lines (31 loc) · 1.13 KB
/
update-copyright-year.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'Update Copyright Year'
on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
schedule:
- cron: '0 0 * * *' # Run once per day, at midnight.
jobs:
update-copyright-year:
# Only run on main repository
if: github.repository == 'm4rs-mt/ILGPU'
runs-on: ubuntu-latest
steps:
# Checkout full history so that the copyright tool has the required information.
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup the latest .NET 7 SDK
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
- name: Update copyright year
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: |
dotnet run --configuration=Release -p:TreatWarningsAsErrors=true --project Tools/CopyrightUpdateTool
COMMIT_MESSAGE: 'Bump copyright year.'
COMMIT_NAME: 'ILGPU CLI'
COMMIT_EMAIL: '[email protected]'
PR_BRANCH_PREFIX: 'schedule/'
PR_BRANCH_NAME: 'update-copyright-year'
PR_TITLE: 'Bump copyright year.'