File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 6565 # however this isnt available for 'issue_comment'
6666 # ---------------------------------------------------------------------------------------
6767
68- - name : 🏷️ Verify Existing Labels
69- uses : actions/github-script@v7
70- with :
71- github-token : ${{ secrets.ADMINSERV_TOKEN_CL }}
72- script : |
73- const labels = JSON.parse( process.env.LABELS_JSON );
74- for ( const label of labels )
75- {
76- try
77- {
78- await github.rest.issues.createLabel(
79- {
80- owner: context.repo.owner,
81- repo: context.repo.repo,
82- name: label.name,
83- description: label.description || '',
84- color: label.color
85- });
86- }
87- catch ( err )
88- {
89- if ( err.status === 422 )
90- {
91- console.log( `Label '${label.name}' already exists. Skipping.` );
92- }
93- else
94- {
95- console.error( `Error creating label '${label.name}': ${err}` );
96- }
97- }
98- }
99-
10068 # ---------------------------------------------------------------------------------------
10169 # get issue number
10270 # ---------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments