File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,34 +13,30 @@ jobs:
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- # Checkout this workflow's repository (to commit back the ZIP)
1716 - name : Checkout this repo
1817 uses : actions/checkout@v4
1918 with :
2019 persist-credentials : true
2120 fetch-depth : 1
2221
23- # Checkout the external mini-fair-repo into a subfolder
2422 - name : Checkout mini-fair-repo
2523 uses : actions/checkout@v4
2624 with :
2725 repository : fairpm/mini-fair-repo
2826 token : ${{ secrets.GITHUB_TOKEN }}
2927 path : mini-fair-repo
28+ fetch-depth : 1
3029
31- # Setup PHP for Composer
3230 - name : Set up PHP
3331 uses : shivammathur/setup-php@v2
3432 with :
3533 php-version : ' 8.1'
3634 tools : composer
3735
38- # Install dependencies inside the external repo
3936 - name : Install dependencies
4037 working-directory : mini-fair-repo
4138 run : composer install --no-dev --prefer-dist --no-progress --no-interaction
4239
43- # Create the ZIP in the root workspace
4440 - name : Create ZIP file
4541 working-directory : mini-fair-repo
4642 run : |
5147 zip -r "../$ZIP_NAME" . \
5248 -x ".git/*" \
5349 -x ".github/*" \
54- -x "build/*" \
55- -x "node_modules/*" \
56- -x "tests/*"
5750
58- # Commit the newly created ZIP back to this repo
5951 - name : Commit ZIP file
6052 run : |
6153 git config user.name "github-actions[bot]"
You can’t perform that action at this time.
0 commit comments