Skip to content

Commit 268507d

Browse files
matejsemancikclaude
andcommitted
feat(workflow): Add conditional JIRA transition with helpful message
- Add step to check if JIRA_CONTEXT secret is provided - Show informative message when JIRA context is not configured - Only execute transition action when JIRA context is available - Keep action inputs required, handle optionality at workflow level 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b76120e commit 268507d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/android-cloud-nightly-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,20 @@ jobs:
170170
needs: [changelog, build]
171171
if: success() && needs.changelog.outputs.skip_build != 'true'
172172
steps:
173+
- name: Check JIRA context
174+
id: check
175+
env:
176+
JIRA_CONTEXT: ${{ secrets.JIRA_CONTEXT }}
177+
run: |
178+
if [ -z "$JIRA_CONTEXT" ]; then
179+
echo "enabled=false" >> $GITHUB_OUTPUT
180+
echo "ℹ️ JIRA ticket transition skipped - no JIRA context provided."
181+
echo "💡 Tip: You can automatically transition JIRA tickets by passing the 'JIRA_CONTEXT' secret."
182+
else
183+
echo "enabled=true" >> $GITHUB_OUTPUT
184+
fi
173185
- name: Transition JIRA tickets
186+
if: steps.check.outputs.enabled == 'true'
174187
uses: ./.github/actions/jira-transition-tickets
175188
with:
176189
jira_context: ${{ secrets.JIRA_CONTEXT }}

0 commit comments

Comments
 (0)