Skip to content

Commit

Permalink
update actions and limit concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Feb 28, 2024
1 parent f801104 commit 5b177a2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/manubot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- jashapiro/workflow-updates
pull_request:
branches:
- main
Expand All @@ -28,6 +29,10 @@ 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 +50,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 +72,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 5b177a2

Please sign in to comment.