File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,30 +141,9 @@ jobs:
141141 determine_changed_packages :
142142 name : Determine Changed Packages
143143 needs : determine_changed_files
144- runs-on : ubuntu-latest
145- outputs :
146- changed_packages : ${{ steps.get_packages.outputs.changed_packages }}
147-
148- steps :
149- - name : Checkout
150- uses : actions/checkout@v4
151- with :
152- sparse-checkout : |
153- package
154-
155- - name : Checkout shared workflows tools
156- uses : actions/checkout@v4
157- with :
158- repository : openwrt/actions-shared-workflows
159- path : shared-workflows
160- sparse-checkout : .github/scripts/get_changed_packages.pl
161-
162- - name : Determine changed packages
163- id : get_packages
164- run : |
165- CHANGED_PACKAGES="$(./shared-workflows/.github/scripts/get_changed_packages.pl "${{ needs.determine_changed_files.outputs.all_changed_files }}")"
166-
167- echo "changed_packages="$CHANGED_PACKAGES"" >> $GITHUB_OUTPUT
144+ uses : ./.github/workflows/reusable_determine_changed_packages.yml
145+ with :
146+ all_changed_files : ${{ needs.determine_changed_files.outputs.all_changed_files }}
168147
169148 build :
170149 name : Build Kernel with external toolchain
Original file line number Diff line number Diff line change 1616 determine_changed_packages :
1717 name : Determine Changed Packages
1818 needs : determine_changed_files
19- runs-on : ubuntu-latest
20- outputs :
21- changed_packages : ${{ steps.get_packages.outputs.changed_packages }}
22-
23- steps :
24- - name : Checkout
25- uses : actions/checkout@v4
26- with :
27- sparse-checkout : |
28- package
29-
30- - name : Checkout shared workflows tools
31- uses : actions/checkout@v4
32- with :
33- repository : openwrt/actions-shared-workflows
34- path : shared-workflows
35- sparse-checkout : .github/scripts/get_changed_packages.pl
36-
37- - name : Determine changed packages
38- id : get_packages
39- run : |
40- CHANGED_PACKAGES="$(./shared-workflows/.github/scripts/get_changed_packages.pl "${{ needs.determine_changed_files.outputs.all_changed_files }}")"
41-
42- echo "changed_packages="$CHANGED_PACKAGES"" >> $GITHUB_OUTPUT
19+ uses : ./.github/workflows/reusable_determine_changed_packages.yml
20+ with :
21+ all_changed_files : ${{ needs.determine_changed_files.outputs.all_changed_files }}
4322
4423 build :
4524 name : Build Packages with external toolchain
Original file line number Diff line number Diff line change 1+ name : Determine Changed Files
2+
3+ on :
4+ workflow_call :
5+ outputs :
6+ changed_packages :
7+ value : ${{ jobs.determine_changed_packages.outputs.changed_packages }}
8+ inputs :
9+ all_changed_files :
10+ required : true
11+ type : string
12+
13+ jobs :
14+ determine_changed_packages :
15+ name : Determine Changed Packages
16+ runs-on : ubuntu-latest
17+ outputs :
18+ changed_packages : ${{ steps.get_packages.outputs.changed_packages }}
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ with :
24+ sparse-checkout : |
25+ package
26+
27+ - name : Checkout shared workflows tools
28+ uses : actions/checkout@v4
29+ with :
30+ repository : openwrt/actions-shared-workflows
31+ path : shared-workflows
32+ sparse-checkout : .github/scripts/get_changed_packages.pl
33+
34+ - name : Determine changed packages
35+ id : get_packages
36+ run : |
37+ CHANGED_PACKAGES="$(./shared-workflows/.github/scripts/get_changed_packages.pl "${{ inputs.all_changed_files }}")"
38+
39+ echo "changed_packages="$CHANGED_PACKAGES"" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments