-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (34 loc) · 1.1 KB
/
prepare-release.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
name: Prepare a new release
on:
workflow_dispatch:
inputs:
version:
required: true
description: Version number for the new release
jobs:
prepare-release:
# To not run in forks
if: github.repository_owner == 'packit'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare release content
uses: packit/prepare-release@v3
with:
version: ${{ inputs.version }}
specfiles: fedora/python-specfile.spec,epel8/python-specfile.spec
prerelease_suffix_pattern: "([.\\-_]?)(a(lpha)?|b(eta)?|r?c|pre(view)?)([.\\-_]?\\d+)?"
prerelease_suffix_macro: prerelease
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
labels: release
commit-message: Release ${{ inputs.version }}
title: Release ${{ inputs.version }}
body: Update the changelog and the specfile for release ${{ inputs.version }}.
delete-branch: true