File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 66 - master
77 paths :
88 - buildinfo.json
9+ workflow_call :
910 # workaround for #526
1011 workflow_dispatch :
1112
Original file line number Diff line number Diff line change 99 check :
1010 runs-on : ubuntu-latest
1111 if : github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'factoriotools/factorio-docker')
12+ outputs :
13+ updated : ${{ steps.changes.outputs.updated }}
1214
1315 steps :
1416 - name : Checkout
1517 uses : actions/checkout@v6
1618
19+ - name : Save current HEAD
20+ id : before
21+ run : echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
22+
1723 - name : Run update script
1824 run : ./update.sh
1925 shell : bash
26+
27+ - name : Check for changes
28+ id : changes
29+ run : |
30+ if [ "$(git rev-parse HEAD)" != "${{ steps.before.outputs.sha }}" ]; then
31+ echo "updated=true" >> "$GITHUB_OUTPUT"
32+ else
33+ echo "updated=false" >> "$GITHUB_OUTPUT"
34+ fi
35+
36+ build :
37+ needs : check
38+ if : needs.check.outputs.updated == 'true'
39+ uses : ./.github/workflows/docker-build.yml
40+ secrets : inherit
You can’t perform that action at this time.
0 commit comments