mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-13 21:57:21 -05:00
remove unnecessary git push from build step
This commit is contained in:
@@ -48,6 +48,7 @@ build:
|
||||
- node_modules/
|
||||
script:
|
||||
- npm ci
|
||||
|
||||
- |
|
||||
$repos = @("frontend", "player", "stream-api", "auth-proxy")
|
||||
$last = @{}
|
||||
@@ -99,22 +100,6 @@ build:
|
||||
|
||||
echo "CHANGED=true" >> build.env
|
||||
|
||||
- |
|
||||
try {
|
||||
git config user.name "gitlab-ci[bot]"
|
||||
git config user.email "gitlab-ci[bot]@gitlab.com"
|
||||
git add last-shas.json
|
||||
|
||||
$gitStatus = git status --porcelain
|
||||
if ($gitStatus) {
|
||||
git remote set-url origin "https://oauth2:$env:GITLAB_TOKEN@gitlab.com/$env:CI_PROJECT_PATH.git"
|
||||
git commit -m "chore: update last-known repo SHAs [skip ci]"
|
||||
git push origin "HEAD:$env:CI_COMMIT_BRANCH"
|
||||
}
|
||||
} catch {
|
||||
Write-Warning "Could not push last-shas.json back to git repository. Proceeding with build..."
|
||||
}
|
||||
|
||||
- Write-Host "Starting secure build process..."
|
||||
- node build-pipeline.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user