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.
2 parents 26c394c + 7c87cea commit 6f46171Copy full SHA for 6f46171
1 file changed
.github/workflows/code-style.yml
@@ -43,9 +43,6 @@ jobs:
43
runs-on: ubuntu-latest
44
45
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
46
-
47
- env:
48
- HAS_PACKAGE_JSON: ${{ hashFiles('package.json') != '' && '1' || '0' }}
49
50
steps:
51
- uses: actions/checkout@v5
@@ -55,6 +52,16 @@ jobs:
55
52
with:
56
53
node-version: 'latest'
57
54
+ - name: Detect package.json
+ id: has_pkg
+ shell: bash
58
+ run: |
59
+ if [ -f package.json ]; then
60
+ echo "HAS_PACKAGE_JSON=1" >> "$GITHUB_ENV"
61
+ else
62
+ echo "HAS_PACKAGE_JSON=0" >> "$GITHUB_ENV"
63
+ fi
64
+
65
- name: Setup Composer
66
run: |
67
composer global config --no-plugins allow-plugins.laravel/pint true
0 commit comments