Skip to content

Commit

Permalink
Update the check link action to use maintainer tools (#1949)
Browse files Browse the repository at this point in the history
* Update the check link action to use maintainer tools

* Fix the workfow

* Update .github/workflows/check-release.yml

Co-authored-by: Raúl Cumplido <[email protected]>

* Restore the matrix strategy in check-release workflow

* Move check link in its own job, and install its dependencies

---------

Co-authored-by: Raúl Cumplido <[email protected]>
  • Loading branch information
brichet and raulcd authored Jan 29, 2025
1 parent 8563de4 commit 9b13081
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
name: Check Release
on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
branches: ["*"]

jobs:
check_release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group: [check_release, link_check]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Check Release
if: ${{ matrix.group == 'check_release' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Link Check
if: ${{ matrix.group == 'link_check' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
- name: Upload Distributions
uses: actions/upload-artifact@v4
with:
name: nbgrader-jupyter-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist

check_links:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install dependencies
run: pip install -e .
- name: Run Link Check
uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
with:
ignore_links: http://www.opensource.org/licenses/mit-license.php

0 comments on commit 9b13081

Please sign in to comment.