diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 5413a55..6c6383f 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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/github-push-action@v0.6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} - message: "Update version on tag creation" + # ??? + force: true + tags: true