feat: mirror to bitbucket #4
1 changed files with 17 additions and 4 deletions
|
@ -115,10 +115,23 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
finish-deploy:
|
mirror:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
needs: [build-and-test, check-version]
|
container:
|
||||||
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: finish
|
- name: Instalando dependencias
|
||||||
run: |
|
run: |
|
||||||
echo "OK Done".
|
apk add git
|
||||||
|
|
||||||
|
- name: Checkout código
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # ✅ clone completo
|
||||||
|
|
||||||
|
- name: Push para o repositório espelho
|
||||||
|
run: |
|
||||||
|
git remote add bitbucket https://leandro_costa:${BITBUCKET_TOKEN}@bitbucket.org/leandro_costa/lhmask.git
|
||||||
|
git push --force bitbucket HEAD
|
||||||
|
env:
|
||||||
|
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue