From a8066e7a18bc8361753ca7b00282705dd049afcf Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:24:44 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20GitHub=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gh-pages.yml | 3 ++- .github/workflows/label.yml | 3 ++- .github/workflows/stale.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/test-build.yml | 5 +++-- 4 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7f9d824..79335b6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -7,12 +7,13 @@ on: jobs: build-deploy: + name: Build and Deploy runs-on: ubuntu-20.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true fetch-depth: 0 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 21ec6d5..8fb77bf 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -4,6 +4,7 @@ on: [pull_request_target] jobs: label: + name: Label runs-on: ubuntu-latest permissions: contents: read @@ -11,7 +12,7 @@ jobs: steps: - name: Label - uses: actions/labeler@v3 + uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeller.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..92ebcbe --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +name: "Close stale issues and PRs" +on: + schedule: + - cron: "30 1 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-stale: 30 + days-before-close: 14 + stale-issue-label: "stale" + stale-pr-label: "stale" + stale-issue-message: > + This issue has been automatically marked as stale because it has not had any recent activity. + + If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open. + + This issue will automactically close in 14 days if no further activity occurs. + stale-pr-message: > + This pull request has been automatically marked as stale because it has not had any recent activity. + + Please review the PR history and add a reply with any requested information. If no information has been requested, it may be that this contribution does not fit with the project objectives, or does not adhere to the [contributing guidelines](https://github.com/jpanther/lynx/blob/dev/CONTRIBUTING.md). If this is in error, please add a reply with further details. + + This PR will automactically close in 14 days if no further activity occurs. diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 2621d94..4722561 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -1,15 +1,16 @@ name: Test Build -on: [push, pull_request] +on: [push] jobs: build: + name: Build Example Site runs-on: ubuntu-20.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true fetch-depth: 0