Skip to content

Commit 485fe43

Browse files
committed
fix(workflow): explicit label creation in upstream-sync
1 parent ad3b59e commit 485fe43

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/upstream-sync.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ jobs:
7272
run: |
7373
git push -f origin "$SYNC_BRANCH"
7474
75+
- name: Ensure Labels Exist
76+
env:
77+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
run: |
79+
# Ensure labels exist to prevent errors during PR creation
80+
gh label create upstream-sync --description "Syncs changes from upstream" --color 1d76db || true
81+
gh label create conflict --description "Merge conflicts detected" --color b60205 || true
82+
83+
# Debug: List labels to verify visibility
84+
gh label list
85+
7586
- name: Create Pull Request
7687
if: steps.merge.outputs.merge_status == 'success' || steps.merge.outputs.merge_status == 'conflict'
7788
run: |

0 commit comments

Comments
 (0)