mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-12-04 03:58:13 +00:00
ci(collections): only touch the tracking issue on runs against main
workflow_dispatch can target any branch, so a manual run on a fix branch could close the main tracking issue while main was still broken, or open one for a URL main never had. Both issue steps now gated on refs/heads/main.
This commit is contained in:
1 parent
1aad00dbd7
commit
1a5cb3b6b9
1 file changed
+2
-2
@@ -93,7 +93,7 @@ jobs:
|
||||
# Only for runs against main itself (schedule / manual), never PRs or pushes:
|
||||
# a PR that breaks a URL already shows a red check on the PR.
|
||||
- name: Open or update the tracking issue
|
||||
if: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
||||
if: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TITLE: 'Catalog URLs failing on main'
|
||||
@@ -118,7 +118,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Close the tracking issue once URLs pass
|
||||
if: success() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
||||
if: success() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TITLE: 'Catalog URLs failing on main'
|
||||
|
||||
Reference in new issue
Block a user