Skip to content

Commit 4333433

Browse files
committed
Update workflow enable commands to use full path for clarity and consistency
1 parent a64e791 commit 4333433

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/0-start-exercise.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,13 @@ jobs:
135135
await github.rest.issues.update({ owner, repo, issue_number: number, body });
136136
137137
- name: Enable next step workflow
138-
run: gh workflow enable "Step 1"
138+
run: gh workflow enable ".github/workflows/1-step.yml"
139139
env:
140140
GH_TOKEN: ${{ github.token }}
141141

142142
# On désactive Step 0 pour empêcher tout nouveau run
143143
- name: Disable current workflow
144-
run: gh workflow disable "${{ github.workflow }}"
144+
run: gh workflow disable ".github/workflows/0-start-exercise.yml"
145145
env:
146146
GH_TOKEN: ${{ github.token }}
147+
continue-on-error: true

.github/workflows/1-step.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ jobs:
6666
- name: Disable current workflow and enable next one
6767
run: |
6868
gh workflow disable "${{ github.workflow }}"
69-
gh workflow enable "Step 2"
69+
gh workflow enable ".github/workflows/2-step.yml"
7070
env:
7171
GH_TOKEN: ${{ github.token }}

.github/workflows/2-step.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ jobs:
127127
- name: Disable current workflow and enable next one
128128
run: |
129129
gh workflow disable "${{ github.workflow }}"
130-
gh workflow enable "Step 3"
130+
gh workflow enable ".github/workflows/3-last-step.yml"
131131
env:
132132
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)