From a14d272312d682f27270e48ced7bbf5fdccf0ca7 Mon Sep 17 00:00:00 2001 From: Marcin Nowak-Liebiediew Date: Mon, 30 Oct 2023 14:59:10 +0100 Subject: [PATCH] chore(ci): use `dfinity/setup-dfx` GitHub Action to install `dfx` (#439) --- .github/workflows/examples.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index d8bb85c5a..a528d0816 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -88,10 +88,9 @@ jobs: mv candid-extractor /usr/local/bin/candid-extractor - name: Install DFX - run: | - export DFX_VERSION=${{env.dfx-version }} - echo Install DFX v$DFX_VERSION - yes | sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" + uses: dfinity/setup-dfx@main + with: + dfx-version: "${{ env.dfx-version }}" - name: Setup BATS uses: mig4/setup-bats@v1.0.2