Skip to content

Commit

Permalink
GH actions - Update a few to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jomey committed Apr 3, 2024
1 parent 736ecbe commit b97971b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setupconda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: "composite"
steps:
- name: Cache Conda Packages
uses: actions/cache@v3
uses: actions/cache@v4
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
Expand All @@ -15,7 +15,7 @@ runs:
${{ runner.os }}-conda-packages-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
miniforge-variant: Mambaforge
Expand All @@ -26,7 +26,7 @@ runs:

- name: Cache Entire Conda Environment
id: cache-env
uses: actions/cache@v3
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setupconda

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/netlifypreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
add-preview:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# This workflow accesses secrets and checks out a PR, so only run if labelled
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
if: contains(github.event.pull_request.labels.*.name, 'preview')
Expand All @@ -20,7 +20,7 @@ jobs:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -31,7 +31,7 @@ jobs:
jupyter-book build docs/
- name: Deploy Website Preview
uses: nwtgck/actions-netlify@v1.1
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './docs/_build/html'
production-deploy: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setupconda

Expand Down

0 comments on commit b97971b

Please sign in to comment.