Skip to content

Commit

Permalink
ci: update action for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Dec 26, 2022
1 parent f1ea337 commit e70f9dd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ jobs:
update_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

# Update the file
- name: Update file
- name: Update file and commit
run: |
sed -i s/__CURRENT_VERSION__/${{ github.ref_name }}/g versions.cfg
- name: Commit and push changes
uses: ad-m/github-push-action@master
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 }}
message: "Update version on tag creation"
# ???
force: true
tags: true

0 comments on commit e70f9dd

Please sign in to comment.