Skip to content

Commit 2fb905a

Browse files
committed
chore: ignore commits from actions
1 parent e298f03 commit 2fb905a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
publish-rc:
99
runs-on: ubuntu-latest
10+
if: "!contains(github.event.head_commit.author.name, 'Github Actions')"
1011
env:
1112
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1213
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -21,7 +22,7 @@ jobs:
2122
- name: Configure Git User
2223
run: |
2324
git config --global user.email "[email protected]"
24-
git config --global user.name "@$GITHUB_ACTOR"
25+
git config --global user.name "Github Actions"
2526
- name: Authenticate with Registry
2627
run: |
2728
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc

0 commit comments

Comments
 (0)