We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1e47a commit 03576e7Copy full SHA for 03576e7
.github/workflows/copilot-setup-steps.yml
@@ -19,7 +19,14 @@ jobs:
19
- name: Checkout code
20
uses: actions/checkout@v5
21
22
+ - name: Check existence of composer.json file
23
+ id: check_composer_file
24
+ uses: andstor/file-existence-action@v3
25
+ with:
26
+ files: "composer.json"
27
+
28
- name: Set up PHP environment
29
+ if: steps.check_composer_file.outputs.files_exists == 'true'
30
uses: shivammathur/setup-php@v2
31
with:
32
php-version: 'latest'
@@ -30,6 +37,7 @@ jobs:
37
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
39
- name: Install Composer dependencies & cache dependencies
40
33
41
uses: ramsey/composer-install@v3
34
42
env:
35
43
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
0 commit comments