Skip to content

Commit e540132

Browse files
Fix workflow file error by reordering jobs
Move linux_packaging job before ready_to_merge to fix the workflow validation error. Jobs must be defined before they are referenced in needs sections. Fixes #26530 Co-authored-by: adityapatwardhan <12820925+adityapatwardhan@users.noreply.github.com>
1 parent 0957ce6 commit e540132

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/linux-ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@ jobs:
231231
# with:
232232
# runner_os: ubuntu-latest
233233

234+
linux_packaging:
235+
name: Linux Packaging
236+
needs:
237+
- changes
238+
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
239+
runs-on: ubuntu-latest
240+
steps:
241+
- name: checkout
242+
uses: actions/checkout@v6
243+
with:
244+
fetch-depth: 0
245+
- name: Linux Packaging
246+
uses: "./.github/actions/test/linux-packaging"
247+
234248
ready_to_merge:
235249
name: Linux ready to merge
236250
needs:
@@ -247,16 +261,3 @@ jobs:
247261
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0
248262
with:
249263
needs_context: ${{ toJson(needs) }}
250-
linux_packaging:
251-
name: Linux Packaging
252-
needs:
253-
- changes
254-
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
255-
runs-on: ubuntu-latest
256-
steps:
257-
- name: checkout
258-
uses: actions/checkout@v6
259-
with:
260-
fetch-depth: 0
261-
- name: Linux Packaging
262-
uses: "./.github/actions/test/linux-packaging"

0 commit comments

Comments
 (0)