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