From 7078a56e2abaa8fa126e0551ccf595d6fb179899 Mon Sep 17 00:00:00 2001 From: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:39:16 -0500 Subject: [PATCH] [docs](doc): create issue update year LICENSE Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> --- .github/workflows/NewYearUpdateCopyright.yml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/NewYearUpdateCopyright.yml diff --git a/.github/workflows/NewYearUpdateCopyright.yml b/.github/workflows/NewYearUpdateCopyright.yml new file mode 100644 index 0000000..e414230 --- /dev/null +++ b/.github/workflows/NewYearUpdateCopyright.yml @@ -0,0 +1,37 @@ +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: 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