Skip to content

Commit

Permalink
Merge pull request #53 from AlexsLemonade/jashapiro/workflow-updates
Browse files Browse the repository at this point in the history
Reduce redundant runs
  • Loading branch information
jashapiro authored Feb 28, 2024
2 parents 3fc669d + ad5e31c commit d09b4b3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/manubot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ on:
type: boolean
description: Use Docker to generate PDF
default: true

concurrency:
# only one run per branch at a time
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
manubot:
name: Manubot
Expand All @@ -45,7 +51,7 @@ jobs:
shell: bash --login {0}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# fetch entire commit history to support get_rootstock_commit
fetch-depth: 0
Expand All @@ -67,20 +73,20 @@ jobs:
echo "DEFAULT_BRANCH_REF=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV
echo "DEFAULT_BRANCH=$DEFAULT_BRANCH"
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ci/cache
key: ci-cache-${{ github.ref }}
restore-keys: |
ci-cache-${{ env.DEFAULT_BRANCH_REF }}
- name: Install Environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: manubot
environment-file: build/environment.yml
auto-activate-base: false
miniforge-variant: Mambaforge
miniforge-version: 'latest'
miniforge-version: "latest"
use-mamba: true
- name: Install Spellcheck
if: env.SPELLCHECK == 'true'
Expand Down

0 comments on commit d09b4b3

Please sign in to comment.