From 1fd665ddec5dda2ab3cb77aa367a4128fbccfbe1 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Mon, 30 Jan 2023 14:51:53 +0700 Subject: [PATCH] Fix github action warnings --- .github/workflows/benchmark.yml | 4 ++-- .github/workflows/docs.yml | 4 ++-- .github/workflows/publish-dev.yml | 6 +++--- .github/workflows/publish-rc.yml | 6 +++--- .github/workflows/publish-stable.yml | 8 ++++---- .github/workflows/test-browser.yml | 4 ++-- .github/workflows/test-e2e.yml | 4 ++-- .github/workflows/test-sim-merge.yml | 8 ++++---- .github/workflows/test-sim.yml | 4 ++-- .github/workflows/test-spec.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- scripts/get_prev_tag.js | 4 +++- 12 files changed, 31 insertions(+), 29 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 643e5824a73..c00de88c2ac 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -26,8 +26,8 @@ jobs: steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 06d48b14940..6ccb9242362 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,8 +10,8 @@ jobs: runs-on: ubuntu-latest steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index 2dc072ccb23..7105d5e348e 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 18 registry-url: "https://registry.npmjs.org" @@ -107,7 +107,7 @@ jobs: runs-on: ubuntu-latest needs: npm steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # https://github.com/docker/setup-qemu-action - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/.github/workflows/publish-rc.yml b/.github/workflows/publish-rc.yml index 462753d3e87..a171c8eb700 100644 --- a/.github/workflows/publish-rc.yml +++ b/.github/workflows/publish-rc.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -49,7 +49,7 @@ jobs: if: needs.tag.outputs.is_rc == 'true' steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # Needs full depth for changelog generation - uses: actions/setup-node@v2 @@ -130,7 +130,7 @@ jobs: needs: [tag, npm] if: needs.tag.outputs.is_rc == 'true' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: scripts/await-release.sh ${{ needs.tag.outputs.tag }} rc 900 # https://github.com/docker/setup-qemu-action - name: Set up QEMU diff --git a/.github/workflows/publish-stable.yml b/.github/workflows/publish-stable.yml index 7047644b08f..1755e2abb35 100644 --- a/.github/workflows/publish-stable.yml +++ b/.github/workflows/publish-stable.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -55,10 +55,10 @@ jobs: if: needs.tag.outputs.is_stable == 'true' steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # Needs full depth for changelog generation - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version @@ -120,7 +120,7 @@ jobs: needs: [tag, npm] if: needs.tag.outputs.is_stable == 'true' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: scripts/await-release.sh ${{ needs.tag.outputs.tag }} latest 900 # https://github.com/docker/setup-qemu-action - name: Set up QEMU diff --git a/.github/workflows/test-browser.yml b/.github/workflows/test-browser.yml index 16b69b406f4..f3485713d77 100644 --- a/.github/workflows/test-browser.yml +++ b/.github/workflows/test-browser.yml @@ -17,11 +17,11 @@ jobs: node: [18] steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: browser-actions/setup-firefox@latest with: firefox-version: "latest" - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Node.js version diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 7cd1a7ce5da..10de9f15dd8 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -20,8 +20,8 @@ jobs: node: [18] steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Node.js version diff --git a/.github/workflows/test-sim-merge.yml b/.github/workflows/test-sim-merge.yml index d91a01a4d96..2d04ee7c5fd 100644 --- a/.github/workflows/test-sim-merge.yml +++ b/.github/workflows/test-sim-merge.yml @@ -21,8 +21,8 @@ jobs: runs-on: ubuntu-latest steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version @@ -89,7 +89,7 @@ jobs: name: debug-test-logs path: packages/beacon-node/test-logs - # - name: Pull geth withdrawals + # - name: Pull geth withdrawals # run: docker pull $GETH_WITHDRAWALS_IMAGE # - name: Test Lodestar <> geth withdrawals @@ -99,7 +99,7 @@ jobs: # EL_BINARY_DIR: ${{ env.GETH_WITHDRAWALS_IMAGE }} # EL_SCRIPT_DIR: gethdocker - # - name: Pull ethereumjs withdrawals + # - name: Pull ethereumjs withdrawals # run: docker pull $ETHEREUMJS_WITHDRAWALS_IMAGE # - name: Test Lodestar <> ethereumjs withdrawals diff --git a/.github/workflows/test-sim.yml b/.github/workflows/test-sim.yml index a5cae2cb544..4162275c794 100644 --- a/.github/workflows/test-sim.yml +++ b/.github/workflows/test-sim.yml @@ -17,8 +17,8 @@ jobs: runs-on: ubuntu-latest steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 24f8d0aa789..09ce55b4fc5 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -16,8 +16,8 @@ jobs: # - run: ./scripts/free-disk-space.sh # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - name: Node.js version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7321b3b6f2f..b7dde3513ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,8 +17,8 @@ jobs: node: [18] steps: # - Uses YAML anchors in the future - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Node.js version diff --git a/scripts/get_prev_tag.js b/scripts/get_prev_tag.js index cc86fdc3e06..b106d15d242 100644 --- a/scripts/get_prev_tag.js +++ b/scripts/get_prev_tag.js @@ -30,7 +30,9 @@ async function run() { const tags = stdout.trim().split("\n"); for (const tag of tags) { if (tag !== CURRENT_TAG && !tag.includes(IGNORE_PATTERN)) { - console.log(`::set-output name=prev_tag::${tag}`); + const cmd = `echo "prev_tag=${tag}" >> ${process.env.GITHUB_OUTPUT}`; + console.log("Execute command on shell", cmd); + await promisify(exec)(cmd); return; } }