Skip to content

Commit 43d96bb

Browse files
committed
Initialize submodules before build
1 parent 95dd567 commit 43d96bb

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/deploy-create-pre-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ jobs:
1414
uses: actions/checkout@v3
1515
with:
1616
ref: ${{ github.event.repository.default_branch }}
17+
18+
- name: Setup the Git user
19+
run: |
20+
git config user.name "GitHub Actions Bot"
21+
git config user.email "<>"
1722
1823
- name: Append -beta onto the plugin version in the plugin header
1924
run: |
2025
VERSION=$(jq -r .version package.json)
2126
sed -i 's/Version: .*/Version: '"$VERSION"-beta'/' class-plugin-check.php
2227
28+
- name: Download the plugin-scan script from the submodule
29+
run: |
30+
git submodule update --init --recursive
31+
2332
- name: Build Plugin Check
2433
run: npm run build
2534

.github/workflows/deploy-release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
uses: actions/checkout@v3
1414
with:
1515
ref: ${{ github.event.repository.default_branch }}
16+
17+
- name: Setup the Git user
18+
run: |
19+
git config user.name "GitHub Actions Bot"
20+
git config user.email "<>"
1621
1722
- name: Set version
1823
run: |
@@ -30,6 +35,10 @@ jobs:
3035
run: |
3136
echo -e "${{ github.event.milestone.title }} / $(date +%Y-%m-%d)\n===================\n${{ github.event.milestone.description }}\n\n$(cat changelog.txt)" > changelog.txt
3237
38+
- name: Download the plugin-scan script from the submodule
39+
run: |
40+
git submodule update --init --recursive
41+
3342
- name: Run version update
3443
run: |
3544
npm --no-git-tag-version version $NEW_TAG_VERSION
@@ -38,11 +47,6 @@ jobs:
3847
- name: Build Plugin Check
3948
run: npm run build
4049

41-
- name: Setup the Git user
42-
run: |
43-
git config user.name "GitHub Actions Bot"
44-
git config user.email "<>"
45-
4650
- name: Publish new tag
4751
run: |
4852
git tag $NEW_TAG_VERSION

0 commit comments

Comments
 (0)