Skip to content

Commit 7837be1

Browse files
committed
Run the workflow for PRs but don't push the commit
1 parent 00869f6 commit 7837be1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- '*'
7+
pull_request:
78
workflow_dispatch:
89
jobs:
910
update:
@@ -20,6 +21,7 @@ jobs:
2021
- run: git add .
2122
- run: git commit -m 'Update progress values'
2223
- uses: ad-m/github-push-action@master
24+
if: github.event_name != 'pull_request'
2325
with:
2426
github_token: ${{ secrets.GITHUB_TOKEN }}
2527
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)