Skip to content

Commit

Permalink
Update actions to versions running on Node20
Browse files Browse the repository at this point in the history
As per
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/,
GitHub has started a deprecation process for the GitHub Actions that run on
Node16. We're updating Actions that use this version of Node to newer versions,
running on Node20.
  • Loading branch information
michalinacienciala committed Feb 21, 2024
1 parent 1ce921a commit 0158bf1
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 43 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/bitcoin-bitcoind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -35,13 +35,13 @@ jobs:
run:
working-directory: ./bitcoin/bitcoind
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -50,14 +50,14 @@ jobs:
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
env:
IMAGE_NAME: ghcr.io/keep-network/local-setup/bitcoind
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/bitcoin-electrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -35,13 +35,13 @@ jobs:
run:
working-directory: ./bitcoin/electrs
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -50,14 +50,14 @@ jobs:
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
env:
IMAGE_NAME: ghcr.io/keep-network/local-setup/electrs
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/bitcoin-electrumx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -35,13 +35,13 @@ jobs:
run:
working-directory: ./bitcoin/electrumx
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -50,14 +50,14 @@ jobs:
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
env:
IMAGE_NAME: ghcr.io/keep-network/local-setup/electrumx
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/bitcoin-esplora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -35,13 +35,13 @@ jobs:
run:
working-directory: ./bitcoin/esplora
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -50,14 +50,14 @@ jobs:
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
env:
IMAGE_NAME: ghcr.io/keep-network/local-setup/esplora
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/common-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -36,9 +36,9 @@ jobs:
|| needs.common-js-detect-changes.outputs.path-filter == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "12.x"

Expand All @@ -56,9 +56,9 @@ jobs:
|| needs.common-js-detect-changes.outputs.path-filter == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "12.x"

Expand All @@ -82,9 +82,9 @@ jobs:
# && github.event_name != 'pull_request'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v4

# - uses: actions/setup-node@v2
# - uses: actions/setup-node@v4
# with:
# node-version: "12.x"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install common tools
working-directory: ./deployments/local-setup-environment/provisioning/
run: ./install-commons.sh

- name: Use Node.js 14
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "14"
cache: "npm"

- name: Set up Go 1.16
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.16

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
run:
working-directory: ./e2e
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "14.x"
cache: "npm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
code-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "14.x"
cache: "yarn"
Expand Down

0 comments on commit 0158bf1

Please sign in to comment.