Skip to content

Commit b8f67ee

Browse files
committed
github actions: skip JIRA checks if secrets are unavailable
There are many workflows that are useful without the JIRA checks from Forks. We're still evaluating how to best deal with this without a lot of engineer overhead to check extrenal contributors.
1 parent f55b713 commit b8f67ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/validate-kernel-commits.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@ jobs:
158158
pip install jira
159159
160160
- name: Mask JIRA credentials
161+
if: secrets.JIRA_API_TOKEN != '' && secrets.JIRA_API_USER != '' && secrets.JIRA_URL != ''
161162
run: |
162163
echo "::add-mask::${{ secrets.JIRA_API_TOKEN }}"
163164
echo "::add-mask::${{ secrets.JIRA_API_USER }}"
164165
echo "::add-mask::${{ secrets.JIRA_URL }}"
165166
166167
- name: Run JIRA PR Check
167168
id: jira_check
169+
if: secrets.JIRA_API_TOKEN != '' && secrets.JIRA_API_USER != '' && secrets.JIRA_URL != ''
168170
continue-on-error: true # Allow PR comments to be posted before failing workflow
169171
env:
170172
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

0 commit comments

Comments
 (0)