diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index de4e2d0f..1b5cf409 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -70,3 +70,8 @@ jobs: - name: Push to cachix if: github.ref == 'refs/heads/main' run: nix --option system "${{ matrix.system }}" run .#cachix-push + - name: Run static binary workflow + if: success() + uses: ./.github/workflows/static-binary-check.yaml + secrets: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/static-binary-check.yaml b/.github/workflows/static-binary-check.yaml index 27413719..841c6bfc 100644 --- a/.github/workflows/static-binary-check.yaml +++ b/.github/workflows/static-binary-check.yaml @@ -1,22 +1,12 @@ name: "Static binary" on: - workflow_run: - workflows: [CI] - types: [completed] + workflow_call: + secrets: + GITHUB_TOKEN: + required: true jobs: - on-success: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - run: echo 'The triggering workflow passed' - on-failure: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - run: echo 'The triggering workflow failed' check: - needs: on-success runs-on: ${{ matrix.system }} strategy: matrix: