Skip to content

Upgrade Yagna

Upgrade Yagna #63

Workflow file for this run

name: Upgrade Yagna
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
check-update:
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.check-changes.changes }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/update-versions
- run: rm install.sh
- id: check-changes
run: echo "changes=$(git status --short | wc -l)" >> "$GITHUB_OUTPUT"
create-pr:
runs-on: ubuntu-latest
needs:
- check-update
if: needs.check-update.outputs.changes != '0'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/update-versions
- run: |
YA_RESOURCES_VERSION=$(curl -s https://api.github.com/repos/golemfactory/ya-installer-resources/releases/latest | jq .name | sed s/v//)
sed -i -E 's/(ARG YA_RESOURCES_VERSION=)\S+/\1${YA_RESOURCES_VERSION}/' docker/Dockerfile
- run: rm install.sh
- uses: peter-evans/create-pull-request@v3
with:
commit-message: "chore: upgrade Yagna to v${{ env.YA_INSTALLER_CORE }}"
title: "chore: upgrade Yagna to v${{ env.YA_INSTALLER_CORE }}"
branch: patch/yagna-${{ env.YA_INSTALLER_CORE }}
reviewers: ${{ github.repository_owner }}
delete-branch: true