Skip to content

Commit 07a8ed2

Browse files
committed
cvafve
1 parent 83f9ac7 commit 07a8ed2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/promote-branch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: 'Check if base branch exists'
8383
id: check-target-branch-exists
8484
env:
85-
target-branch: ${{ needs.workflow-variables.outputs.target-branch }}
85+
target-branch: ${{ steps.set-target-branch.outputs.target-branch }}
8686
run: |
8787
set +e
8888
@@ -102,7 +102,7 @@ jobs:
102102
- name: 'Check if base branch exists'
103103
id: check-base-branch-exists
104104
env:
105-
base-branch: ${{ needs.workflow-variables.outputs.base-branch }}
105+
base-branch: ${{ steps.set-base-branch.outputs.base-branch }}
106106
run: |
107107
set +e
108108
@@ -124,11 +124,11 @@ jobs:
124124
env:
125125
GH_TOKEN: ${{ github.token }}
126126
current-branch: ${{ github.ref_name }}
127-
target-branch: ${{ needs.workflow-variables.outputs.target-branch }}
127+
target-branch: ${{ steps.set-target-branch.outputs.target-branch }}
128128
run: |
129129
set +e
130130
131-
pull_request_exists=$(echo gh pr list --head ${{ env.current-branch }} --base ${{ env.target-branch }} --state "open" --limit 1 --jq '.total_count')
131+
pull_request_exists=$(echo gh pr list --head ${{ env.current-branch }} --base ${{ env.target-branch }} --state 'open' --limit 1 --jq '.total_count')
132132
133133
echo $pull_request_exists
134134

0 commit comments

Comments
 (0)