Skip to content

Commit e43d635

Browse files
authored
Update publish.yml
1 parent ee99a58 commit e43d635

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
fetch-depth: 0
3131
token: ${{ secrets.GITHUB_TOKEN }}
3232

33+
- name: Exit if not a PR merge
34+
run: |
35+
if [[ "${{ github.event.pusher.name }}" != "web-flow" ]]; then
36+
echo "Not a PR merge (pusher: ${{ github.event.pusher.name }}). Exiting."
37+
exit 1
38+
fi
39+
3340
- name: Set up Node.js
3441
uses: actions/setup-node@v4
3542
with:

0 commit comments

Comments
 (0)