-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.18 KB
/
NewYearUpdateCopyright.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
36
37
38
39
40
41
42
name: Create Issue to Update Year In Relevant Files
# developer: @RalphHightower
on:
schedule:
- cron: "0 5 1 1 *" # America/New_York (UTC-5:00)
permissions: none
jobs:
create_issue:
name: Create issue to update copyright year
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Happy New Year!
run: |
new_issue_url=$(gh issue create \
--title "$TITLE" \
--assignee "$ASSIGNEES" \
--label "$LABELS" \
--body "$BODY")
if [[ $PINNED == true ]]; then
gh issue pin "$new_issue_url"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
TITLE: Happy New Year – Update License Year
ASSIGNEES: RalphHightower
LABELS: documentation
BODY: |
### New Year's Maintenance
- [ ] Update LICENSE. Add new year to year's span.
PINNED: false
CLOSE_PREVIOUS: false