forked from NOAA-GFDL/FMS
-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (21 loc) · 928 Bytes
/
version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# appends -dev to the version upon release and opens pr
# CI won't run on generated PR, easiest workaround is to close + reopen
on:
release:
types: [published]
jobs:
add-dev-to-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Append version with dev
run: sed -i '/20[0-9][0-9]\.[0-9][0-9]/ s/]/-dev]/' configure.ac
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
base: main # creates a new branch off of main
branch: add-dev-post-release # name of the created branch
branch-suffix: timestamp # add a timestamp to branch name
delete-branch: true # delete afer merge
title: Append dev to version number post-release
body: automated change, adds '-dev' to the version number upon releases. This PR will need to be closed and reopened to run CI testing.