Update .woodpecker.yml
This commit is contained in:
@@ -43,7 +43,6 @@ steps:
|
|||||||
curl -X POST -H "Content-Type: application/json" --data '{"text": "Build completed: '$CI_COMMIT_SHA'"}' $WEBHOOK_URL
|
curl -X POST -H "Content-Type: application/json" --data '{"text": "Build completed: '$CI_COMMIT_SHA'"}' $WEBHOOK_URL
|
||||||
|
|
||||||
- name: push-to-github
|
- name: push-to-github
|
||||||
# Corrected Indentation applied to all keys below this line:
|
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
environment:
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
@@ -51,11 +50,14 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status: [ success ]
|
status: [ success ]
|
||||||
commands:
|
commands:
|
||||||
# --- ADDED: Verify repository integrity ---
|
- rm -rf .git
|
||||||
- echo "Verifying local git integrity..."
|
- git init
|
||||||
- git fsck --full
|
- git remote add origin ${CI_REPO_CLONE_URL}
|
||||||
# If the above fails, the pipeline step will stop here.
|
- git fetch origin test
|
||||||
|
- git checkout -b test origin/test
|
||||||
|
|
||||||
|
- echo "Verifying clean repo..."
|
||||||
|
- git fsck --full
|
||||||
|
|
||||||
# --- Existing Commands ---
|
|
||||||
- git remote add github https://$GITHUB_TOKEN@github.com/Magiciian/dummy-app.git
|
- git remote add github https://$GITHUB_TOKEN@github.com/Magiciian/dummy-app.git
|
||||||
- git push github HEAD:main
|
- git push github test:main
|
||||||
|
|||||||
Reference in New Issue
Block a user