Skip to content

Commit d9384cd

Browse files
Merge pull request #73 from openforcefield/update-actions
Update action versions
2 parents 607e0b1 + 0af54c6 commit d9384cd

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/cookbook_pr_closed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Clean up PR cache
1818
shell: bash -l {0}

.github/workflows/cookbook_pr_opened.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ on:
88
branches:
99
- main
1010

11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
1115
jobs:
1216
preprocess:
1317
runs-on: ubuntu-latest
1418

1519
steps:
1620
- name: Checkout deployment branch
17-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
1822
with:
1923
ref: _cookbook_data_main
2024
clean: false
2125

2226
- name: Copy cache from main to PR branch
23-
shell: bash -l {0}
2427
run: |
2528
git config user.name github-actions
2629
git config user.email [email protected]

.github/workflows/cookbook_preproc.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
branches:
1515
- main
1616

17+
defaults:
18+
run:
19+
shell: bash -l {0}
20+
1721
concurrency:
1822
group: ${{ github.workflow }}-${{ inputs.pr_number || github.ref || github.run_id }}
1923
cancel-in-progress: true
@@ -24,7 +28,6 @@ jobs:
2428

2529
steps:
2630
- name: Choose deployment branch
27-
shell: bash -l {0}
2831
run: |
2932
if [[ ${{ github.event_name }} != "workflow_dispatch" ]]; then
3033
echo "DEPLOY_BRANCH=_cookbook_data_$GITHUB_REF_NAME" >> "$GITHUB_ENV"
@@ -83,32 +86,25 @@ jobs:
8386
8487
return created_run.data.id
8588
86-
- uses: actions/checkout@v3
89+
- uses: actions/checkout@v4
8790

8891
- name: Install Conda environment
89-
uses: mamba-org/setup-micromamba@v1
92+
uses: mamba-org/setup-micromamba@v2
9093
with:
9194
environment-file: devtools/conda-envs/examples_env.yml
92-
# default - will pull down 2.0 which we don't want!
93-
# micromamba-version: latest
94-
# pin to latest 1.x release
95-
micromamba-version: "1.5.10-0"
9695

9796
- name: Pre-process and execute notebooks
98-
shell: bash -l {0}
9997
run: |
10098
set -e
10199
python source/_ext/proc_examples.py --prefix=deploy/ --cache-branch=${DEPLOY_BRANCH} --log-failures=notebooks_log.json
102100
103101
- name: Read notebooks log
104102
if: always()
105-
shell: bash -l {0}
106103
run: |
107104
cat 'notebooks_log.json'
108105
echo "NOTEBOOKS_LOG=$(cat 'notebooks_log.json')" >> "$GITHUB_ENV"
109106
110107
- name: Deploy cache
111-
shell: bash -l {0}
112108
run: |
113109
cd deploy
114110
@@ -128,7 +124,6 @@ jobs:
128124
- name: Trigger RTD build
129125
# RTD doesn't offer a way to manually trigger builds in PRs, so we'll just do this for other builds
130126
if: github.event_name == 'schedule' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.pr_number == '')
131-
shell: bash -l {0}
132127
run: |
133128
curl -X POST -d "branches=$GITHUB_REF_NAME" -d "token=${{ secrets.RTD_WEBHOOK_TOKEN }}" https://readthedocs.org/api/v2/webhook/openff-docs/243876/
134129

.github/workflows/lint.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@ on:
1111
- cron: "0 0 * * *"
1212
workflow_dispatch:
1313

14+
defaults:
15+
run:
16+
shell: bash -l {0}
17+
1418
jobs:
1519
check:
1620
runs-on: ubuntu-latest
1721

1822
steps:
19-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2024

2125
- name: Install Conda environment
22-
uses: mamba-org/setup-micromamba@v1
26+
uses: mamba-org/setup-micromamba@v2
2327
with:
2428
environment-file: devtools/conda-envs/lint_env.yml
2529

2630
- name: Check dead links
27-
shell: bash -l {0}
2831
run: |
2932
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b linkcheck source build/linkcheck
3033
3134
- name: Check code blocks
32-
shell: bash -l {0}
3335
run: |
3436
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b codelinter source build/codelinter

0 commit comments

Comments
 (0)