-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (50 loc) · 1.39 KB
/
monthly-copyright-update.yml
File metadata and controls
55 lines (50 loc) · 1.39 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Monthly Copyright Update
on:
workflow_call:
inputs:
repo-name:
required: true
type: string
org-name:
required: false
type: string
default: 51degrees
user:
required: false
type: string
default: Automation51D
email:
required: false
type: string
default: "51DCI@51Degrees.com"
dryrun:
required: false
type: string
default: false
secrets:
token:
required: true
jobs:
monthly-copyright-update:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Checkout reusable workflow dir
uses: actions/checkout@v6
with:
repository: ${{ inputs.org-name }}/common-ci
path: common
- name: Update Copyright
shell: pwsh
working-directory: ${{ github.workspace }}/common/
run: |
$DryRun = [bool]::Parse( "${{ inputs.dryrun }}" )
. ${{ github.workspace }}/common/monthly-copyright-update.ps1 `
-GitHubToken ${{ secrets.token }} `
-RepoName ${{ inputs.repo-name }} `
-OrgName ${{ inputs.org-name }} `
-Branch ${{ github.ref_name }} `
-GitHubUser ${{ inputs.user }} `
-GitHubEmail ${{ inputs.email }} `
-DryRun $DryRun