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