From 28219f4bcff13b4b6336eb2a8ac5f67489036ae3 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Wed, 18 Dec 2024 14:35:15 -0700 Subject: [PATCH] fixup if works --- .github/workflows/test.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da1d1fee6d..7b47d163c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,45 +70,46 @@ jobs: build-templates: name: Build templates for Dependabot needs: workflow-config - if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} with: ref: ${{ github.head_ref }} token: ${{ secrets.LASTMJS_GITHUB_TOKEN }} - uses: ./.github/actions/setup_node + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} - uses: ./.github/actions/setup_dfx + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} - run: npm install + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} - name: Install global dependencies + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} run: | AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic - name: Build stable template + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} run: AZLE_VERBOSE=true npx azle template - name: Build experimental template + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} run: AZLE_VERBOSE=true npx azle template --experimental - uses: ./.github/actions/commit_and_push + if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} with: branch-name: ${{ github.head_ref }} commit-message: 'chore: update templates for dependency changes' gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }} - outputs: - result: success - get-exclude-dirs: name: Get exclude directories - needs: - - workflow-config - - build-templates - if: ${{ always() && (needs.build-templates.result == 'success' || needs.build-templates.result == 'skipped') }} + needs: workflow-config runs-on: ubuntu-latest outputs: exclude-dirs: ${{ steps.get-exclude-dirs.outputs.exclude-dirs }} @@ -127,6 +128,7 @@ jobs: needs: - workflow-config - get-exclude-dirs + - build-templates strategy: fail-fast: false matrix: