Skip to content

Commit 0898c5a

Browse files
rem1776rem1776
authored andcommitted
add workflow for appending -dev
1 parent f4fee3f commit 0898c5a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/version.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# appends -dev to the version upon release and opens pr
2+
# CI won't run on generated PR, easiest workaround is to close + reopen
3+
on:
4+
release:
5+
types: [published]
6+
jobs:
7+
add-dev-to-version:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4.2.2
11+
- name: Append version with dev
12+
run: sed -i '/20[0-9][0-9]\.[0-9][0-9]/ s/]/-dev]/' configure.ac
13+
- name: Create pull request
14+
uses: peter-evans/create-pull-request@v7.0.6
15+
with:
16+
base: main # creates a new branch off of main
17+
branch: add-dev-post-release # name of the created branch
18+
branch-suffix: timestamp # add a timestamp to branch name
19+
delete-branch: true # delete afer merge
20+
title: Append dev to version number post-release
21+
body: automated change, adds '-dev' to the version number upon releases. This PR will need to be closed and reopened to run CI testing.

0 commit comments

Comments
 (0)