diff --git a/.github/workflows/chaos.yml b/.github/workflows/chaos.yml index 081a9e194..01a98712d 100644 --- a/.github/workflows/chaos.yml +++ b/.github/workflows/chaos.yml @@ -26,7 +26,7 @@ jobs: - name: Event is dispatch if: contains(github.event_name, 'workflow_dispatch') && github.repository_owner == 'axonweb3' && github.event.inputs.dispatch != 'regression' - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: get_sha with: github-token: ${{ steps.generate_axon_bot_token.outputs.BOT_TOKEN }} @@ -94,7 +94,7 @@ jobs: private_key: ${{ secrets.AXON_BOT_PRIVATE_KEY }} - if: contains(join(needs.*.result, ';'), 'failure') || contains(join(needs.*.result, ';'), 'cancelled') run: exit 1 - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 if: ${{ always() }} with: github-token: ${{ steps.generate_axon_bot_token.outputs.BOT_TOKEN }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6719ee317..7a0c49e19 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -27,7 +27,7 @@ jobs: - name: Event is dispatch if: contains(github.event_name, 'workflow_dispatch') && github.repository_owner == 'axonweb3' - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: get_sha with: github-token: ${{ steps.generate_axon_bot_token.outputs.BOT_TOKEN }} @@ -101,7 +101,7 @@ jobs: private_key: ${{ secrets.AXON_BOT_PRIVATE_KEY }} - if: contains(join(needs.*.result, ';'), 'failure') || contains(join(needs.*.result, ';'), 'cancelled') run: exit 1 - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 if: ${{ always() }} with: github-token: ${{ steps.generate_axon_bot_token.outputs.BOT_TOKEN }} diff --git a/.github/workflows/entry_workflow.yml b/.github/workflows/entry_workflow.yml index 0731e94b4..ff91c2f61 100644 --- a/.github/workflows/entry_workflow.yml +++ b/.github/workflows/entry_workflow.yml @@ -32,7 +32,7 @@ jobs: - name: Dispatch CIs if the user does have correct permission if: contains('admin write', fromJson(steps.user_permission.outputs.data).permission) id: dispatch - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const dispatch = { @@ -179,7 +179,7 @@ jobs: - name: Post a coment about component information to PR if: contains('admin write', fromJson(steps.user_permission.outputs.data).permission) id: post_workflow_run_comment - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | console.log(`${{ steps.escape_multiple_lines_test_inputs.outputs.result }}`); diff --git a/.github/workflows/issue_comments.yml b/.github/workflows/issue_comments.yml index 7f508a76a..2afa3ca90 100644 --- a/.github/workflows/issue_comments.yml +++ b/.github/workflows/issue_comments.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: get assignees - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: assignees with: script: | diff --git a/.github/workflows/openzeppelin_test_11.yml b/.github/workflows/openzeppelin_test_11.yml index fd7ce1419..08a76f736 100644 --- a/.github/workflows/openzeppelin_test_11.yml +++ b/.github/workflows/openzeppelin_test_11.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -165,7 +165,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/openzeppelin_test_16_19.yml b/.github/workflows/openzeppelin_test_16_19.yml index 5a86f74f2..9059fbb4f 100644 --- a/.github/workflows/openzeppelin_test_16_19.yml +++ b/.github/workflows/openzeppelin_test_16_19.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -176,7 +176,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/openzeppelin_test_1_5_and_12_15.yml b/.github/workflows/openzeppelin_test_1_5_and_12_15.yml index 1b5c25a65..d4cf8787a 100644 --- a/.github/workflows/openzeppelin_test_1_5_and_12_15.yml +++ b/.github/workflows/openzeppelin_test_1_5_and_12_15.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -206,7 +206,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/openzeppelin_test_6_10.yml b/.github/workflows/openzeppelin_test_6_10.yml index 96c072131..03e676bde 100644 --- a/.github/workflows/openzeppelin_test_6_10.yml +++ b/.github/workflows/openzeppelin_test_6_10.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -182,7 +182,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/v3_core_test.yml b/.github/workflows/v3_core_test.yml index 6e88e8b23..09be5a00b 100644 --- a/.github/workflows/v3_core_test.yml +++ b/.github/workflows/v3_core_test.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -171,7 +171,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/web3_compatible.yml b/.github/workflows/web3_compatible.yml index 9c5a18ceb..e26be3f96 100644 --- a/.github/workflows/web3_compatible.yml +++ b/.github/workflows/web3_compatible.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Get the git ref of Axon - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: axon_git_ref with: script: | @@ -153,7 +153,7 @@ jobs: # The `statuses: write` permission is required in this step. - name: Update the commit Status if: always() && env.IS_DISPATCH == 'true' && env.IS_REGRESSION == 'false' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.repos.createCommitStatus({