forked from su2code/SU2
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 891 Bytes
/
change-version.yml
File metadata and controls
29 lines (27 loc) · 891 Bytes
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
name: Change Version
on:
push:
branches:
- 'release_v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- name: Change the version number
run: |
SU2_PY/change_version_number.py -v ${GITHUB_REF##*/release_v} -r Blackbird -y
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Changing version number to ${GITHUB_REF##*/release_v}" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.extract_branch.outputs.branch }}