Skip to content

Commit 2c7e6d1

Browse files
Merge pull request #99 from RalphHightower/RalphHightower-patch-3
[docs](doc): create issue update year LICENSE
2 parents c77e414 + ae187a1 commit 2c7e6d1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Create Issue to Update Year In Relevant Files
2+
# developer: @RalphHightower
3+
on:
4+
schedule:
5+
- cron: "0 5 1 1 *" # America/New_York (UTC-5:00)
6+
7+
permissions: none
8+
jobs:
9+
create_issue:
10+
name: Create issue to update copyright year
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
steps:
15+
- name: Happy New Year!
16+
run: |
17+
new_issue_url=$(gh issue create \
18+
--title "$TITLE" \
19+
--assignee "$ASSIGNEES" \
20+
--label "$LABELS" \
21+
--body "$BODY")
22+
if [[ $PINNED == true ]]; then
23+
gh issue pin "$new_issue_url"
24+
fi
25+
env:
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GH_REPO: ${{ github.repository }}
28+
TITLE: Happy New Year – Update License Year
29+
ASSIGNEES: RalphHightower
30+
LABELS: documentation
31+
BODY: |
32+
### New Year's Maintenance
33+
34+
- [ ] Update LICENSE. Add new year to year's span.
35+
36+
PINNED: false
37+
CLOSE_PREVIOUS: false

0 commit comments

Comments
 (0)