Skip to content

Commit 7f4ef67

Browse files
authored
fix: checkout action
1 parent 6e86eff commit 7f4ef67

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.github/workflows/test-file-permissions.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.ref_name }}
24+
fetch-depth: 0
2225

2326
- name: Setup PHP
2427
uses: shivammathur/setup-php@v2
@@ -27,24 +30,5 @@ jobs:
2730
extensions: intl
2831
coverage: none
2932

30-
- name: Use latest Composer
31-
run: composer self-update
32-
33-
- name: Validate composer.json
34-
run: composer validate --strict
35-
36-
- name: Get composer cache directory
37-
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
38-
39-
- name: Cache dependencies
40-
uses: actions/cache@v4
41-
with:
42-
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
43-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
44-
restore-keys: ${{ runner.os }}-composer-
45-
46-
- name: Install dependencies
47-
run: composer update --ansi --no-interaction
48-
4933
- name: Detect unnecessary execution permissions
5034
run: php utils/check_permission_x.php

0 commit comments

Comments
 (0)