We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0643c commit cdca68eCopy full SHA for cdca68e
action.yml
@@ -50,6 +50,7 @@ runs:
50
echo "COMMIT_MESSAGE=chore(${{inputs.environment}}): promote to ${{inputs.environment}} ${{github.sha}}" >> "$GITHUB_ENV"
51
52
- uses: EndBug/add-and-commit@v9
53
+ id: commit
54
with:
55
cwd: ${{env.DEST_DIR}}
56
default_author: github_actions
@@ -58,7 +59,7 @@ runs:
58
59
push: --set-upstream origin ${{env.BRANCH}} ${{env.FORCE}}
60
61
- uses: thomaseizinger/create-pull-request@1.4.0
- if: inputs.pr == 'true'
62
+ if: ${{ inputs.pr == 'true' && steps.commit.outputs.pushed == 'true' }}
63
64
github_token: ${{inputs.token}}
65
head: ${{env.BRANCH}}
0 commit comments