forked from NginxProxyManager/nginx-proxy-manager
-
Notifications
You must be signed in to change notification settings - Fork 22
61 lines (61 loc) · 2.11 KB
/
dependency-updates.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: dependency-updates
on:
push:
branches:
- develop
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
cs-nginx-bouncer-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update cs-nginx-bouncer version
id: update
run: |
CSNB_VER="$(
git ls-remote --tags https://github.com/crowdsecurity/cs-nginx-bouncer \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed -E "s/\^\{\}//"
)"
sed -i "s|ARG CSNB_VER=.*|ARG CSNB_VER=$CSNB_VER|" Dockerfile
echo "version=$CSNB_VER" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update cs-nginx-bouncer version to ${{ steps.update.outputs.version }}
branch: update-cs-nginx-bouncer-version
title: update cs-nginx-bouncer version to ${{ steps.update.outputs.version }}
body: update cs-nginx-bouncer version to ${{ steps.update.outputs.version }}
coreruleset-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update coreruleset version
id: update
run: |
CRS_VER="$(
git ls-remote --tags https://github.com/coreruleset/coreruleset \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed -E "s/\^\{\}//"
)"
sed -i "s|ARG CRS_VER=.*|ARG CRS_VER=$CRS_VER|" Dockerfile
echo "version=$CRS_VER" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update coreruleset version to ${{ steps.update.outputs.version }}
branch: update-coreruleset-version
title: update coreruleset version to ${{ steps.update.outputs.version }}
body: update coreruleset version to ${{ steps.update.outputs.version }}