From 72c2509b868de9ffd841e8ffd6eddfe7fe2c7ab3 Mon Sep 17 00:00:00 2001 From: LanikSJ Date: Mon, 15 Jul 2024 13:57:32 -0700 Subject: [PATCH] Update GitHub Actions Names (#206) --- .github/workflows/auto-approve-pr.yml | 2 +- .github/workflows/jekyll-gh-pages.yml | 2 +- .github/workflows/lock-threads.yml | 34 +++++++++++++++++++++++ .github/workflows/stale-issues.yml | 39 +++++++++++++++++++++++++++ .github/workflows/update-license.yml | 22 +++++++++++++++ 5 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lock-threads.yml create mode 100644 .github/workflows/stale-issues.yml create mode 100644 .github/workflows/update-license.yml diff --git a/.github/workflows/auto-approve-pr.yml b/.github/workflows/auto-approve-pr.yml index 8e9ec6dac..c653eda75 100644 --- a/.github/workflows/auto-approve-pr.yml +++ b/.github/workflows/auto-approve-pr.yml @@ -1,4 +1,4 @@ -name: auto-approve-prs +name: Auto Approve PRs on: pull_request_target: diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index b86adca8e..189862be4 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -37,7 +37,7 @@ jobs: with: source: ./ destination: ./_site - - name: Upload artifact + - name: Upload Artifact uses: actions/upload-pages-artifact@v3 # Deployment job diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml new file mode 100644 index 000000000..c4bd6621f --- /dev/null +++ b/.github/workflows/lock-threads.yml @@ -0,0 +1,34 @@ +name: Lock Threads + +on: + push: + paths: + - .github/workflows/lock-threads.yml + branches-ignore: + - dependabot/** + schedule: + # Once every day at 1am UTC + - cron: "0 1 * * *" + issue_comment: + +permissions: + issues: write + pull-requests: write + +concurrency: + group: lock-threads + cancel-in-progress: ${{ github.event_name != 'issue_comment' }} + +jobs: + lock-threads: + runs-on: ubuntu-latest + steps: + - name: Lock Outdated Threads + uses: dessant/lock-threads@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + process-only: 'issues, prs' + issue-inactive-days: 30 + add-issue-labels: outdated + pr-inactive-days: 30 + add-pr-labels: outdated diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 000000000..e5121a988 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,39 @@ +name: Manage Stale Issues + +on: + push: + paths: + - .github/workflows/stale-issues.yml + branches-ignore: + - dependabot/** + schedule: + # Once every day at midnight UTC + - cron: "0 0 * * *" + issue_comment: + +permissions: + issues: write + pull-requests: write + +concurrency: + group: stale-issues + cancel-in-progress: ${{ github.event_name != 'issue_comment' }} + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Mark/Close Stale Issues and Pull Requests + uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 21 + days-before-close: 7 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. + stale-pr-message: > + This pull request has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. + exempt-issue-labels: "help wanted,in progress" + exempt-pr-labels: "help wanted,in progress" diff --git a/.github/workflows/update-license.yml b/.github/workflows/update-license.yml new file mode 100644 index 000000000..98921278d --- /dev/null +++ b/.github/workflows/update-license.yml @@ -0,0 +1,22 @@ +name: Update License + +on: + schedule: + - cron: '0 10 1 1 *' # 10:00 AM on January 1 + +jobs: + update-license-year: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: FantasticFiasco/action-update-license-year@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commitAuthorEmail: noreply@github.com + - name: Merge pull request + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr merge --squash --delete-branch