From 6b2bc7e204b2d22b5d7e5edfc5d28b54cd9d5865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 11:38:59 +0100 Subject: [PATCH] MNT: fix link_checker.yaml --- .github/workflows/link-checker.yaml | 38 ++++++++--------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 88cdc4d2..2eefbb32 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -24,6 +24,10 @@ on: default: 'true' type: string +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: link-checker: runs-on: ubuntu-latest @@ -31,36 +35,14 @@ jobs: run: shell: bash -l {0} steps: - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v4 - - - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 + - name: Setup Micromamba + uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - activate-environment: ${{ inputs.environment_name }} - use-mamba: true - - - name: Set cache date - if: inputs.use_cached_environment == 'true' - run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV - - - uses: actions/cache@v3 - if: inputs.use_cached_environment == 'true' - with: - path: /usr/share/miniconda3/envs/${{ inputs.environment_name }} - key: linux-64-conda-${{ hashFiles('${{ inputs.environment_file }}') }}-${{ env.DATE }} - id: cache - - - name: Update environment - if: | - inputs.use_cached_environment != 'true' - || steps.cache.outputs.cache-hit != 'true' - run: mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }} + environment-name: ${{ inputs.environment_name }} + environment-file: ${{ inputs.environment_file }} + cache-environment: ${{ inputs.use_cached_environment }} + cache-environment-key: "linux-64-conda-${{ hashFiles('${{ inputs.environment_file }}') }}-${{ env.TODAY }}" - name: Disable notebook execution shell: python