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.
2 parents 9d78edc + 5294023 commit e8c221aCopy full SHA for e8c221a
.github/workflows/pr-health-check.yml
@@ -32,6 +32,7 @@ jobs:
32
run: npm ci
33
34
- name: Run commitlint on PR commits
35
+ if: github.event_name == 'pull_request'
36
run: |
37
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
38
@@ -91,7 +92,10 @@ jobs:
91
92
owner: xero-internal
93
workflow: pr.yml
94
ref: refs/heads/master
- workflow_inputs: '{"branch_name": "${{github.head_ref}}" }'
95
+ workflow_inputs: >
96
+ {
97
+ "branch_name": "${{ github.event_name == 'pull_request' && github.head_ref || 'master' }}"
98
+ }
99
100
- name: Checking SDK health status
101
uses: Codex-/await-remote-run@v1.12.2
0 commit comments