chore: remove outdated am4 ci workflow (#1639)
[FMS.git] / .github / workflows / version.yml
blobd910b6c8f81b50ba4183f50d9f5b33c2ba917ba0
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
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@v4
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.