-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.08 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
name: dependency-updates
on:
push:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
unbound-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update unbound version
id: update
run: |
UNBOUND_VERSION="$(
git ls-remote --tags https://github.com/NLnetLabs/unbound \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed -E "s/\^\{\}//"
)"
sed -i "s|ARG UNBOUND_VERSION=.*|ARG UNBOUND_VERSION=$UNBOUND_VERSION|" ./Dockerfile
echo "version=$UNBOUND_VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update unbound version to ${{ steps.update.outputs.version }}
branch: update-unbound-version
title: update unbound version to ${{ steps.update.outputs.version }}
body: update unbound version to ${{ steps.update.outputs.version }}