From 2834e6483399e1431e6dc2ef145d6f8e9588675f Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Tue, 24 Sep 2024 10:52:06 +0200 Subject: [PATCH] Try this --- .github/workflows/diff.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/diff.yml b/.github/workflows/diff.yml index da86459f19..ae47de271c 100644 --- a/.github/workflows/diff.yml +++ b/.github/workflows/diff.yml @@ -1,15 +1,18 @@ name: Diff on: - workflow_run: - workflows: ["PR Automation"] - branches: ["*"] - types: - - completed + pull_request: {} jobs: render-diff: runs-on: ubuntu-latest steps: + + - name: Wait for build workflow + uses: ArcticLampyrid/action-wait-for-workflow@v1.2.0 + with: + workflow: PR Automation + sha: ${{ github.sha }} + - name: Extract branch name shell: bash run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT