From e85b3fa542ed27fcd7b34f9b231ba6fea918564a Mon Sep 17 00:00:00 2001 From: Katherine Heal Date: Tue, 16 Jul 2024 16:42:03 -0700 Subject: [PATCH] Add complete link to PR template so gh action doesn't fail --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/link_check_push.yml | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9769229d..02a071bf 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,7 @@ ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing document](CONTRIBUTING.md)? -* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change? +* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/microbiomedata/nmdc_notebooks/pulls) for the same update/change? * [ ] Does your PR link to an issue? * [ ] Have you described the changes this PR will make? diff --git a/.github/workflows/link_check_push.yml b/.github/workflows/link_check_push.yml index 1cafe169..06246d2e 100644 --- a/.github/workflows/link_check_push.yml +++ b/.github/workflows/link_check_push.yml @@ -1,16 +1,18 @@ -# This workflow will check all the links in the markdown files in the repository whenever a push event occurs. +# This workflow will check all the links in the markdown files in the repository on each PR or by manual trigger. -name: Check links on push -on: [ push ] +name: Check links on pull request +on: + pull_request: + workflow_dispatch: jobs: linkChecker: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 - - name: Link Checker - # Reference: https://github.com/lycheeverse/lychee-action - id: lychee - uses: lycheeverse/lychee-action@v1 - with: - fail: true \ No newline at end of file + - name: Link Checker + # Reference: https://github.com/lycheeverse/lychee-action + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + fail: true \ No newline at end of file