diff --git a/.github/workflows/auto-pr-rebuild-script.yml b/.github/workflows/auto-pr-rebuild-script.yml index d81c9820c3e..4937de98e04 100644 --- a/.github/workflows/auto-pr-rebuild-script.yml +++ b/.github/workflows/auto-pr-rebuild-script.yml @@ -11,7 +11,7 @@ jobs: name: Check if artifacts should be published runs-on: ubuntu-22.04 outputs: - publish: ${{ steps.check.outputs.publish }} + publish: ${{ steps.check.outputs.result }} steps: - name: Check if artifacts should be published @@ -22,20 +22,24 @@ jobs: script: | const { REF_NAME } = process.env; if (REF_NAME == "master") { + console.log(`publish = true`) return true; } const labels = context.payload.pull_request.labels.map(label => label.name); - return labels.includes('publish-acir'); + const publish = labels.includes('publish-acir'); + + console.log(`publish = ${publish}`) + return publish; result-encoding: string env: REF_NAME: ${{ github.ref_name }} build-nargo: name: Build nargo binary + if: ${{ needs.check-artifacts-requested.outputs.publish == 'true' }} runs-on: ubuntu-22.04 needs: [check-artifacts-requested] - if: ${{ needs.check-artifacts-requested.outputs.publish == true }} strategy: matrix: target: [x86_64-unknown-linux-gnu] @@ -76,7 +80,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download nargo binary uses: actions/download-artifact@v3 @@ -112,7 +116,6 @@ jobs: if: ${{ github.ref_name }} == "master" run: | git diff --quiet tooling/nargo_cli/tests/acir_artifacts/ || echo "::set-output name=changes::true" - - name: Create or Update PR if: steps.check_changes.outputs.changes == 'true'