-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #992 from andev0/master
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update GIT_TAG In Readme | ||
on: | ||
release: | ||
types: [published] | ||
|
||
# Workflow configuration | ||
env: | ||
OUTPUT_BRANCH: "master" | ||
COMMIT_MESSAGE: "Update GIT_TAG on new release" | ||
|
||
jobs: | ||
update-git-tag: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.sha}} | ||
- name: "Replace GIT_TAG" | ||
run: sed -i -re 's/(GIT_TAG) [0-9a-f]+/\1 ${{github.sha}}/' README.md | ||
- name: "Commit changes" | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: ${{env.COMMIT_MESSAGE}} | ||
branch: ${{env.OUTPUT_BRANCH}} |
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