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 de46e13 commit 22d1cccCopy full SHA for 22d1ccc
.github/workflows/deploy-preview.yml
@@ -28,7 +28,8 @@ jobs:
28
name: Debug inputs
29
runs-on: ubuntu-latest
30
steps:
31
- - run: jq . <<< '${{ toJSON(github.event.inputs) }}'
+ - name: Debug inputs
32
+ run: jq . <<< '${{ toJSON(github.event.inputs) }}'
33
34
notify:
35
name: Notify about deployment
@@ -44,6 +45,8 @@ jobs:
44
45
DEPLOY: ${{ github.event.inputs.deploy_id }}
46
run: |
47
ref=$(gh pr view $ISSUE --json potentialMergeCommit -q .potentialMergeCommit.oid)
48
+ [ -z "$ref" ] && { echo "No merge commit for PR $ISSUE"; exit; }
49
+
50
env=staging-$ISSUE
51
url=https://$env.cmbuckley.co.uk
52
echo "url=$url" >> $GITHUB_OUTPUT
0 commit comments