iocittadino1.1.2 (#109) #119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |