32 lines
681 B
YAML
32 lines
681 B
YAML
|
name: Bump Caddy version
|
||
|
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: "12 */4 * * *"
|
||
|
|
||
|
jobs:
|
||
|
bump_caddy:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Reattach HEAD
|
||
|
run: git checkout ${GITHUB_REF#refs/heads/}
|
||
|
|
||
|
- name: Regenerate Dockerfiles
|
||
|
run: make update
|
||
|
|
||
|
- name: Configure git
|
||
|
run: |
|
||
|
git config user.name "${GITHUB_ACTOR}"
|
||
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||
|
|
||
|
- name: Commit and push changes
|
||
|
run: |
|
||
|
git add */Dockerfile
|
||
|
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
||
|
git commit -m 'Bump Caddy version'
|
||
|
git push
|
||
|
fi
|