Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samestrin committed Apr 26, 2024
1 parent abb9644 commit 6dbcc10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- uses: actions/checkout@v4
- name: Update README
run: |
VERSION=$(sed -n 's/^.*"version": "\(.*\)".*$/\1/p' composer.json)
sed -i "s/\(Version-[0-9]*\.[0-9]*\.[0-9]*\)/Version-$VERSION/g" README.md
sed -i "s/badge\/Version-[0-9]\+\.[0-9]\+\.[0-9]\+[^-]*-/badge\/Version-$VERSION-/g" README.md
VERSION=$(node -p "require('./package.json').version")
sed -i "s/Version-[0-9]*\.[0-9]*\.[0-9]*/Version-$VERSION/g" README.md
sed -i "s/badge\/Version-[0-9]*\.[0-9]*\.[0-9]*-/badge\/Version-$VERSION-/g" README.md
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
Expand Down

0 comments on commit 6dbcc10

Please sign in to comment.