From efe1b855d0350f6a90f1f3036ccb19ca3a6454ad Mon Sep 17 00:00:00 2001 From: 0xdavinchee <0xdavinchee@gmail.com> Date: Wed, 8 Nov 2023 07:29:35 +0200 Subject: [PATCH 1/2] handler.run-ethereum-contracts-script.yml --- .../handler.run-ethereum-contracts-script.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/handler.run-ethereum-contracts-script.yml b/.github/workflows/handler.run-ethereum-contracts-script.yml index 16564474c2..b6571f914a 100644 --- a/.github/workflows/handler.run-ethereum-contracts-script.yml +++ b/.github/workflows/handler.run-ethereum-contracts-script.yml @@ -28,6 +28,10 @@ jobs: run-ethereum-contracts-script: runs-on: ubuntu-latest + defaults: + run: + shell: nix develop -c bash -xe {0} + env: RELEASE_VERSION: ${{ github.event.inputs.release_version }} RESOLVER_ADMIN_TYPE: ${{ github.event.inputs.admin_type }} @@ -35,12 +39,10 @@ jobs: steps: - uses: actions/checkout@v3 - - - name: Use Node.js 18.x - uses: actions/setup-node@v3 + + - uses: cachix/install-nix-action@v19 with: - node-version: 18.x - cache: "yarn" + github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: Build run: | From 708d5bb13bb3bde924237bb15aa0c64c45b57ddc Mon Sep 17 00:00:00 2001 From: 0xdavinchee <0xdavinchee@gmail.com> Date: Wed, 8 Nov 2023 08:05:24 +0200 Subject: [PATCH 2/2] add nix to handler.deploy-to-testnets.yml --- .github/workflows/handler.deploy-to-testnets.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/handler.deploy-to-testnets.yml b/.github/workflows/handler.deploy-to-testnets.yml index bb20e32c38..43dd5c5b76 100644 --- a/.github/workflows/handler.deploy-to-testnets.yml +++ b/.github/workflows/handler.deploy-to-testnets.yml @@ -26,6 +26,10 @@ jobs: DEFAULT_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }} PROVIDER_URL_TEMPLATE: ${{ secrets.PROVIDER_URL_TEMPLATE }} + defaults: + run: + shell: nix develop -c bash -xe {0} + strategy: fail-fast: false matrix: @@ -39,12 +43,10 @@ jobs: if: ${{ github.event.inputs.only_network != '' && github.event.inputs.only_network != matrix.network }} run: echo "DO_SKIP=1" >> "$GITHUB_ENV" - - name: Use Node.js 18.x + - uses: cachix/install-nix-action@v19 if: env.DO_SKIP != 1 - uses: actions/setup-node@v3 with: - node-version: 18.x - cache: "yarn" + github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: Build if: env.DO_SKIP != 1