Skip to content

Commit a783dcc

Browse files
committed
Fix workflow
1 parent e50d518 commit a783dcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ jobs:
1616
name: "Update stubs"
1717
runs-on: "ubuntu-latest"
1818
steps:
19-
- name: "Checkout"
19+
- name: "Checkout to commit"
20+
if: github.event_name != 'pull_request'
2021
uses: actions/checkout@v4
2122
with:
2223
ref: ${{ github.head_ref }}
2324
fetch-depth: '0'
2425
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
26+
- name: "Checkout to only read"
27+
if: github.event_name == 'pull_request'
28+
uses: actions/checkout@v4
2529
- name: "Install PHP"
2630
uses: "shivammathur/setup-php@v2"
2731
with:

0 commit comments

Comments
 (0)