Skip to content

Merge pull request #19 from RedTurtle/formsupport_314 #42

Merge pull request #19 from RedTurtle/formsupport_314

Merge pull request #19 from RedTurtle/formsupport_314 #42

Workflow file for this run

name: Update version
# on:
# create:
# types: [tag]
on:
push:
tags:
- '*'
jobs:
update_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Update file and commit
run: |
sed -i "s#__CURRENT_VERSION__#${{ github.ref_name }}#g" versions.cfg
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "update version on tag creation"
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# ???
force: true
tags: true