File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11name : 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
43on :
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 :
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
You can’t perform that action at this time.
0 commit comments