diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-10-11 08:00:06 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-10-11 08:00:06 +0530 |
commit | 44d00292d69e780c65bbffce326898caaba3e73e (patch) | |
tree | 49e52e0ee953683c021e72193a41b170f3acfd84 /.github | |
parent | Always update dependencies in the 'develop' branch (diff) | |
download | ferdium-app-44d00292d69e780c65bbffce326898caaba3e73e.tar.gz ferdium-app-44d00292d69e780c65bbffce326898caaba3e73e.tar.zst ferdium-app-44d00292d69e780c65bbffce326898caaba3e73e.zip |
Submodules get updated only once - removed duplicated code
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/builds.yml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 3d5fcfd2c..9f590de46 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml | |||
@@ -121,12 +121,6 @@ jobs: | |||
121 | run: npm i -gf "pnpm@$(node -p 'require("./recipes/package.json").engines.pnpm')" && pnpm -v | 121 | run: npm i -gf "pnpm@$(node -p 'require("./recipes/package.json").engines.pnpm')" && pnpm -v |
122 | - name: Install node dependencies | 122 | - name: Install node dependencies |
123 | run: npm i | 123 | run: npm i |
124 | - name: Update submodules | ||
125 | run: | | ||
126 | rm -rf ./recipes | ||
127 | npm run update-submodules | ||
128 | git add . | ||
129 | echo "GIT_DIRTY=$(git status -s | wc -l)" >> $GITHUB_ENV | ||
130 | - name: Update browserslist db | 124 | - name: Update browserslist db |
131 | run: | | 125 | run: | |
132 | npx browserslist@latest --update-db | 126 | npx browserslist@latest --update-db |
@@ -137,12 +131,12 @@ jobs: | |||
137 | run: | | 131 | run: | |
138 | npm run prepare-code | 132 | npm run prepare-code |
139 | npm run test | 133 | npm run test |
140 | - name: Commit submodules, dependency-updates and linter changes | 134 | - name: Commit dependency-updates and linter changes |
141 | if: ${{ env.GIT_DIRTY != '0' }} | 135 | if: ${{ env.GIT_DIRTY != '0' }} |
142 | run: | | 136 | run: | |
143 | git config user.name github-actions | 137 | git config user.name github-actions |
144 | git config user.email github-actions@github.com | 138 | git config user.email github-actions@github.com |
145 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true | 139 | git commit -am "Update browserslist data updates and linter fixes [skip ci]" --no-verify || true |
146 | - name: Push all changes | 140 | - name: Push all changes |
147 | if: ${{ env.GIT_DIRTY != '0' }} | 141 | if: ${{ env.GIT_DIRTY != '0' }} |
148 | run: git push origin develop --no-verify | 142 | run: git push origin develop --no-verify |