Skip to content

Commit

Permalink
Bump all actions versions and use ubuntu latest runners (#150)
Browse files Browse the repository at this point in the history
* bump all actions versions, ubuntu latest

* fix bash wildcards for subfolders
  • Loading branch information
scottyhq authored Mar 14, 2024
1 parent 53d170b commit 221049e
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 130 deletions.
4 changes: 2 additions & 2 deletions .github/actions/buildresources/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
steps:
- name: Setup JupyterBook Cache
if: inputs.jb-cache == 'true'
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ./book/_build
# NOTE: change key to "jupyterbook-N+1" to force rebuilding cache
Expand Down Expand Up @@ -52,7 +52,7 @@ runs:

- name: Save Build
if: ${{ always() && inputs.jb-save == 'true'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
path: book/_build/
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/binder-badge.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/build_website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
pull_request_target:
types: [labeled, synchronize]
paths:
- '.github/**'
- '.github/**/*'
- '{{ cookiecutter.repo_directory }}/**'
- 'book/**'
- 'book/**/*'
- 'conda/**'
- 'scripts/**'
- 'cookiecutter.yaml'
Expand All @@ -31,7 +31,7 @@ jobs:

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

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ on:
- '{{ cookiecutter.repo_directory }}/**'
- 'scripts/**'
- '.github/workflows/deploy.yaml'
- '.github/actions/**'
- 'cookiecutter.yaml'

branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure NASA Earthdata Login
continue-on-error: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure NASA Earthdata Login
continue-on-error: true
env:
Expand All @@ -19,7 +19,7 @@ jobs:
run: |
echo "machine urs.earthdata.nasa.gov login $EARTHDATA_USER password $EARTHDATA_PASS" > ~/.netrc
chmod 0600 ~/.netrc
- uses: ./.github/actions/buildresources
with:
jb-cache: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/netlifypreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ 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')

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

Expand All @@ -34,7 +34,7 @@ jobs:

- name: Deploy Website Preview
if: always()
uses: nwtgck/actions-netlify@v2.0
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './book/_build/html'
production-deploy: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qaqc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
quality-control:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/repo2docker-PR.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/repo2docker.yaml

This file was deleted.

0 comments on commit 221049e

Please sign in to comment.