-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs](doc): schedule reminder to update copyright year (#592)
[docs](doc): schedule reminder to update copyright Signed-off-by: Ralph Hightower <[email protected]>
- Loading branch information
1 parent
bb99258
commit c8eb09e
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Create Issue to Update Year In. Relevant Files | ||
# developer: @RalphHightower | ||
on: | ||
schedule: | ||
- cron: "0 5 1 1 *" # America/New_York | ||
- cron: "0,15,30,45 * * * *" # test on quarter hou4 | ||
|
||
permissions: readonly | ||
jobs: | ||
create_issue: | ||
name: Create issue to update copyright year | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- 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 |