-
Notifications
You must be signed in to change notification settings - Fork 15
27 lines (25 loc) · 1.04 KB
/
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
name: Upgrade Yagna
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: update-versions
uses: ./.github/actions/update-versions
- if: steps.update-versions.outputs.changes != '0'
run: |
YA_RESOURCES_VERSION=$(curl -s https://api.github.com/repos/golemfactory/ya-installer-resources/releases/latest | jq -r .name | sed s/v//)
sed -i -E "s/(ARG YA_RESOURCES_VERSION=)\S+/\1${YA_RESOURCES_VERSION}/" docker/Dockerfile
- if: steps.update-versions.outputs.changes != '0'
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore: upgrade Yagna to v${{ steps.update-versions.outputs.version }}"
title: "chore: upgrade Yagna to v${{ steps.update-versions.outputs.version }}"
branch: patch/yagna-${{ steps.update-versions.outputs.version }}
reviewers: ${{ github.repository_owner }}
delete-branch: true
sign-commits: true