File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,15 @@ jobs:
18
18
git config --global user.name "github-actions[bot]"
19
19
git config --global user.email "github-actions[bot]@users.noreply.github.com"
20
20
21
- - name : Ensure "automation" label exists (or update it )
21
+ - name : Ensure "automation" label exists (create or update)
22
22
run : |
23
- if gh label view automation --json name >/dev/null 2>&1; then
24
- echo "Label 'automation' already exists. Updating it..."
25
- gh label edit automation \
26
- --color "0e8a16" \
27
- --description "Automatically created for syncing branches" \
28
- --force
29
- else
30
- echo "Label 'automation' does not exist. Creating it..."
31
23
gh label create automation \
32
- --color "0e8a16" \
33
- --description "Automatically created for syncing branches"
34
- fi
24
+ --color "0e8a16" \
25
+ --description "Automatically created for syncing branches" \
26
+ --force
35
27
env :
36
28
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
29
38
-
39
30
- name : Fetch all branches
40
31
run : git fetch origin importer-rework
41
32
You can’t perform that action at this time.
0 commit comments