Skip to content

Commit a4a6449

Browse files
authored
Update new.yml
zip-it Signed-off-by: Amnesty AM <37809410+AmnestyAM@users.noreply.github.com>
1 parent 98afa97 commit a4a6449

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/new.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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: |
@@ -51,11 +47,7 @@ jobs:
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]"

0 commit comments

Comments
 (0)