Skip to content

Commit

Permalink
chore(release) force actions/checkout to use node16
Browse files Browse the repository at this point in the history
Issues with node20 which is mandatory in actions/checkout@v4 pushes us
to remain on @V3 and set an env variable that forces node16.
  • Loading branch information
thibaultcha committed Jul 16, 2024
1 parent 359d823 commit 1add3ca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ defaults:
env:
CC: clang
RETENTION_DAYS: 7
# For actions/checkout@v3 to use node16 instead of node20
# https://github.com/actions/checkout/issues/1487
# https://github.com/actions/checkout/issues/1809
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
setup:
Expand All @@ -44,7 +48,7 @@ jobs:
release_channel: ${{ steps.assign-vars.outputs.release_channel }}
release_version: ${{ steps.assign-vars.outputs.release_version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Assign runtime versions
id: assign-versions
run: |
Expand Down Expand Up @@ -101,7 +105,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Build archive
run: ./util/release.sh ${{ needs.setup.outputs.release_name }} --src
- name: Upload archive
Expand Down Expand Up @@ -138,7 +142,7 @@ jobs:
file: "./assets/release/Dockerfiles/Dockerfile.amd64.archlinux"
tags: "ghcr.io/kong/wasmx-build-arch:latest"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -206,7 +210,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Build binary
run: ./util/release.sh ${{ needs.setup.outputs.release_name }} --bin
env:
Expand Down Expand Up @@ -238,7 +242,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Build binary
run: ./util/release.sh ${{ needs.setup.outputs.release_name }} --bin
env:
Expand All @@ -261,7 +265,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 150
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Login to GitHub Container Registry
Expand Down Expand Up @@ -343,7 +347,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Build binary
run: ./util/release.sh ${{ needs.setup.outputs.release_name }} --bin
env:
Expand Down Expand Up @@ -375,7 +379,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Build binary
run: ./util/release.sh ${{ needs.setup.outputs.release_name }} --bin
env:
Expand All @@ -402,7 +406,7 @@ jobs:
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
V8_VER: ${{ needs.setup.outputs.v8_ver }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Setup dependencies
run: |
brew install ninja openssh
Expand Down

0 comments on commit 1add3ca

Please sign in to comment.