-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57a28b6
commit d20f322
Showing
2 changed files
with
7 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -53,14 +53,15 @@ jobs: | |
# Defines the readme version to the dev tag | ||
- name: Update README.md | ||
run: | | ||
echo "Changing README.md version to 'dev'." | ||
sed "s/readme-\(.*\)-blue/readme-dev-blue/g" README.md > temp.md | ||
mv temp.md README.md | ||
AUTHOR=$(git log -1 --pretty=format:'%an <%ae>') | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git config --local user.name "GitHub Actions" | ||
git pull origin main | ||
git add README.md | ||
git commit --amend --no-edit --author "$AUTHOR" | ||
git push origin HEAD:main | ||
git commit -m "Update README.md for tag 'dev' [skip ci]" | ||
git push origin main | ||
- name: Build and push | ||
id: build_push | ||
|
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 |
---|---|---|
|
@@ -22,9 +22,8 @@ jobs: | |
VERSION=${GITHUB_REF#refs/tags/} | ||
sed "s/readme-\(.*\)-blue/readme-$VERSION-blue/g" README.md > temp.md | ||
mv temp.md README.md | ||
AUTHOR=$(git log -1 --pretty=format:'%an <%ae>') | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add README.md | ||
git commit --amend --no-edit --author "$AUTHOR" | ||
git push origin HEAD:main | ||
git commit -m "Update README.md for tag '$VERSION' [skip ci]" | ||
git push origin HEAD:main |