Skip to content

Commit 15fe0f6

Browse files
Test pull request
1 parent 5bd908a commit 15fe0f6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/pull-request-approved.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Pull request approve workflow
2-
run-name: 'Pull request approve workflow ${{ github.event.pull_request.head.ref }} -> ${{ github.event.pull_request.base.ref }} by @${{ github.actor }}'
32

43
on:
5-
pull_request_review:
6-
types: [ submitted ]
74
workflow_call:
85
target_branch:
96
description: 'Target branch of the PR (github.event.pull_request.base.ref)'
@@ -32,10 +29,10 @@ jobs:
3229
name: "Get current branch for Xetabase from target branch"
3330
run: |
3431
chmod +x ./.github/workflows/scripts/get-xetabase-branch.sh
35-
echo "github.event.pull_request.base.ref: ${{ github.event.pull_request.base.ref || inputs.target_branch }}"
36-
echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref || inputs.head_ref }}"
32+
echo "github.event.pull_request.base.ref: ${{ inputs.target_branch }}"
33+
echo "github.event.pull_request.head.ref: ${{ inputs.head_ref }}"
3734
echo "secrets.ZETTA_REPO_ACCESS_TOKEN: ${{ secrets.ZETTA_REPO_ACCESS_TOKEN }}"
38-
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref || inputs.target_branch }} ${{ github.event.pull_request.head.ref || inputs.head_ref }})
35+
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ inputs.target_branch }} ${{ inputs.head_ref }})
3936
echo "__Xetabase ref:__ \"${xetabase_branch}\"" | tee -a ${GITHUB_STEP_SUMMARY}
4037
echo "xetabase_branch=${xetabase_branch}" >> $GITHUB_OUTPUT
4138
env:
@@ -47,5 +44,5 @@ jobs:
4744
uses: ./.github/workflows/test-xetabase-workflow.yml
4845
with:
4946
branch: ${{ needs.calculate-xetabase-branch.outputs.xetabase_branch }}
50-
task: ${{ github.event.pull_request.head.ref || inputs.head_ref }}
47+
task: ${{ inputs.head_ref }}
5148
secrets: inherit

0 commit comments

Comments
 (0)