-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 1.11 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
28
29
30
31
name: Update Gaphor version
on:
workflow_dispatch:
inputs:
version:
description: 'New version'
required: true
repository_dispatch:
types: [version-update]
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Update version
run: |
if test -z "${{ github.event.inputs.version }}${{ github.event.client_payload.version }}"; then echo "No version provided"; exit 1; fi
make only-update VERSION=${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: update to version ${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
title: Update to version ${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
body: Update to latest release
branch: release-${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
base: master