Always build if either bashbrew or dockerfiles changed
parent
c0db25d860
commit
6a74fac6ff
|
@ -44,17 +44,18 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Regenerate Bashbrew manifests
|
- name: Regenerate Bashbrew manifests
|
||||||
if: steps.commit-dockerfiles.outputs.bumped == 'yes'
|
#if: steps.commit-dockerfiles.outputs.bumped == 'yes'
|
||||||
run: |
|
run: |
|
||||||
go run update.go -manifest -commit $(git log -1 --format='format:%H' HEAD)
|
go run update.go -manifest -commit $(git log -1 --format='format:%H' HEAD)
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
if: steps.commit-dockerfiles.outputs.bumped == 'yes'
|
#if: steps.commit-dockerfiles.outputs.bumped == 'yes'
|
||||||
run: |
|
run: |
|
||||||
git add library/caddy
|
git add library/caddy
|
||||||
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
||||||
git commit -m "Bump Caddy version" -a
|
git commit -m "Bump Caddy version" -a
|
||||||
git push
|
git push
|
||||||
|
echo "::set-output name=bumped::yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build images on Linux
|
- name: Build images on Linux
|
||||||
|
|
Loading…
Reference in New Issue