Skip to content

Commit 8d5371e

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/update.yml

Lines changed: 4 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,9 @@ jobs:
2021
- run: git add .
2122
- run: git commit -m 'Update progress values'
2223
- uses: ad-m/github-push-action@master
24+
if: |
25+
github.repository_owner == 'm-aciek'
26+
&& github.event_name != 'pull_request'
2327
with:
2428
github_token: ${{ secrets.GITHUB_TOKEN }}
2529
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)