Skip to content

Commit 7541eb7

Browse files
skarimCopilot
andauthored
improve workflow code sample
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 60cd33a commit 7541eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/content/docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
echo "Stack base SHA: ${{ github.event.pull_request.stack.base.sha }}"
9090
9191
- name: Run a step only when the stack targets a release branch
92-
if: startsWith(github.event.pull_request.stack.base.ref, 'release/')
92+
if: github.event.pull_request.stack != null && startsWith(github.event.pull_request.stack.base.ref, 'release/')
9393
run: echo "This stack targets a release branch"
9494
```
9595

0 commit comments

Comments
 (0)