File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed
Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 2626 HOMEBREW_NO_INSTALL_CLEANUP : 1
2727
2828jobs :
29- homebrew-formula-lts :
30- timeout-minutes : 15
31- runs-on : macos-latest
29+ changes :
30+ if : startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell'
31+ name : Change Detection
32+ runs-on : ubuntu-latest
33+ # Required permissions
34+ permissions :
35+ pull-requests : read
36+ # Set job outputs to values from filter step
37+ outputs :
38+ source : ${{ steps.filter.outputs.workflows }}
3239 steps :
33- - name : Checkout
40+ - name : checkout
3441 uses : actions/checkout@v4
3542
36- - name : Check for applicable files
37- uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
43+ # For pull requests it's not necessary to checkout the code
44+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.2.0
3845 id : filter
3946 with :
47+ list-files : json
4048 filters : |
4149 workflows:
4250 - '.github/workflows/PR-powershell-lts.yml'
4351 - 'Formula/powershell-lts.rb'
4452
53+ - name : Capture outputs
54+ run : |
55+ "workflows: ${{ steps.filter.outputs.workflows }}"
56+ shell : pwsh
57+
58+ homebrew-formula-lts :
59+ timeout-minutes : 15
60+ needs : changes
61+ if : ${{ needs.changes.outputs.workflows == 'true' }}
62+ runs-on : macos-latest
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@v4
66+
4567 - name : Prepare Agent
46- if : steps.filter.outputs.workflows == 'true'
4768 uses : ./.github/workflows/composite/prep
4869
4970 - name : Install and Test Formula
50- if : steps.filter.outputs.workflows == 'true'
5171 uses : ./.github/workflows/composite/installAndTest
You can’t perform that action at this time.
0 commit comments