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 0b20067 commit 0d953bbCopy full SHA for 0d953bb
automerge-example/webhooks/templates/automerge-task.yaml
@@ -34,8 +34,9 @@ spec:
34
- name: merge-pr
35
image: YOUR_DOCKER_HUB_ID/hub-test
36
script: |
37
- #!/bin/bash -x
38
-
+ #!/bin/bash -ex
+ # Intentionally use the -e here so we fail the PipelineRun if anything goes wrong
39
+ # for example in the case of bad credentials being provided.
40
if [ $(params.event-type) = "push" ]; then
41
echo "git push on branch $(params.branch-name)"
42
if [ $(params.branch-name) = "refs/heads/master" ]; then
0 commit comments