File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,16 @@ sync-app:
197
197
script :
198
198
- apt update && apt-get install -y connect-proxy
199
199
- git remote add public $OAUTH_URL
200
+ # Checkout the branch before the lfs commands for REF_NAME to be recognized as a local name.
201
+ - git checkout $CI_COMMIT_REF_NAME
200
202
- |
201
203
if grep -q "filter=lfs" .gitattributes 2>/dev/null; then
202
204
echo "Git LFS detected. Handling LFS objects..."
203
- git lfs fetch --all origin
204
- git lfs push --all public
205
+ git lfs fetch --all origin $CI_COMMIT_REF_NAME
206
+ git lfs push --all public $CI_COMMIT_REF_NAME
205
207
else
206
208
echo "Git LFS not detected. Skipping LFS steps."
207
209
fi
208
- - git checkout $CI_COMMIT_REF_NAME
209
210
# Push current branch to github
210
211
- git push public $CI_COMMIT_REF_NAME
211
212
# Push the latest tag we can find
You can’t perform that action at this time.
0 commit comments