generated from szaimen/aio-fail2ban
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 1014 Bytes
/
caddy-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: caddy-update
on:
workflow_dispatch:
schedule:
- cron: '00 12 * * *'
permissions:
contents: write
pull-requests: write
jobs:
caddy-update:
name: update caddy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run caddy-container-update
run: |
set -x
# caddy_hash
caddy_hash="$(
git ls-remote https://github.com/porech/caddy-maxmind-geolocation master \
| cut -f1 \
| tail -1
)"
sed -i "s|^ENV CADDY_HASH.*$|ENV CADDY_HASH=$caddy_hash|" ./Dockerfile
cat ./Dockerfile
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: caddy-update automated change
signoff: true
title: caddy container update
body: Automated caddy container update
labels: dependencies, 3. to review
milestone: next
token: ${{ secrets.GITHUB_TOKEN }}
branch: caddy-container-update