File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,25 +11,25 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - name : Checkout full repo
15- uses : actions/checkout@v4
14+ - uses : actions/checkout@v4
1615 with :
1716 fetch-depth : 0
1817
19- - name : Configure Git author
18+ - name : Configure Git user
2019 run : |
2120 git config user.name "github-actions[bot]"
22- git config user.email "github-actions[bot]@users.noreply.github.com"
21+ git config user.email "41898282+ github-actions[bot]@users.noreply.github.com"
2322
24- - name : Regex replace semver everywhere
23+ - name : Replace semver everywhere except workflows
2524 run : |
26- # Find all text files (excluding .git)
27- find . -path "./.git" -prune -o -type f -print0 \
25+ find . -type f \
26+ ! -path "./.git/*" \
27+ ! -path "./.github/workflows/*" \
28+ -print0 \
2829 | xargs -0 sed -Ei 's/2\.2\.3/2.2.4/g'
2930
30- # Only commit if there are changes
31- if git diff --cached --quiet && git diff --quiet; then
32- echo "No matches for 2.2.3 found."
31+ if git diff --quiet; then
32+ echo "Nothing to update."
3333 exit 0
3434 fi
3535
3838 git push
3939
4040 - name : Done
41- run : echo "✔ semver bump completed ."
41+ run : echo "Done semver bump."
You can’t perform that action at this time.
0 commit comments