Skip to content

Commit f491d48

Browse files
Update tmp.yml
1 parent 612da59 commit f491d48

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/tmp.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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
@@ -38,4 +38,4 @@ jobs:
3838
git push
3939
4040
- name: Done
41-
run: echo " semver bump completed."
41+
run: echo "Done semver bump."

0 commit comments

Comments
 (0)