Skip to content

Commit

Permalink
Update development.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thejcpalma committed Feb 13, 2024
1 parent 57a28b6 commit d20f322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d20f322

Please sign in to comment.