Skip to content

Commit 67178ff

Browse files
committed
Update PR workflow ref logic and branch names
Signed-off-by: AhmedSeemalK <ahmed.seemal@intel.com>
1 parent 8f7e86c commit 67178ff

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/pr-workflow.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: PR Workflow
33
on:
44
push:
55
branches:
6-
- cd-integration
6+
- cd-integeration
77
pull_request:
88
branches:
9-
- cd-integration
9+
- cd-integeration
1010
workflow_dispatch:
1111
inputs:
1212
pr_number:
@@ -27,8 +27,10 @@ jobs:
2727
exit 1
2828
fi
2929
echo "ref=refs/pull/${{ github.event.inputs.pr_number }}/merge" >> "$GITHUB_OUTPUT"
30-
else
30+
elif [ "${{ github.event_name }}" = "pull_request" ]; then
3131
echo "ref=refs/pull/${{ github.event.pull_request.number }}/merge" >> "$GITHUB_OUTPUT"
32+
else
33+
echo "ref=${{ github.ref }}" >> "$GITHUB_OUTPUT"
3234
fi
3335
3436
- name: Checkout target

0 commit comments

Comments
 (0)