-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1.06 KB
/
Copy pathversion_change.yaml
File metadata and controls
34 lines (31 loc) · 1.06 KB
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
name: '🗂 Version Change'
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
inputs:
version:
description: "Version (no 'v' prefix)"
required: true
jobs:
create_version_pull_request:
name: '🗂 Create Version Pull Request'
runs-on: ubuntu-latest
steps:
- name: '🧾 Checkout'
uses: actions/checkout@v5
- name: '📝 Change Version'
uses: vers-one/dotnet-project-version-updater@v1.7
with:
file: "OpenPolytopia/OpenPolytopia.csproj"
version: ${{ github.event.inputs.version }}
- name: '⤴️ Create Pull Request'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: version/${{ github.event.inputs.version }}
commit-message: update version to ${{ github.event.inputs.version }}
title: 'chore(project): update version to ${{ github.event.inputs.version }}'
body: >
chore(project): update the version to ${{ github.event.inputs.version }}.