ci: using mirror template
Some checks are pending
CI Pipeline / mirror (push) Waiting to run
CI Pipeline / build-and-test (push) Successful in 59s
CI Pipeline / check-version (push) Successful in 11s
CI Pipeline / publish-staging (push) Has been skipped
CI Pipeline / publish-production (push) Has been skipped

This commit is contained in:
Leandro Costa 2025-05-28 11:11:02 -03:00
parent a495c73a03
commit 7c43477f7a

View file

@ -116,22 +116,6 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
mirror: mirror:
runs-on: docker uses: leandro/devops/.forgejo/workflows/bitbucket-mirror.yaml@main
container: with:
image: node:20-alpine remote_url: https://leandro_costa:${{ secrets.BITBUCKET_TOKEN }}@bitbucket.org/leandro_costa/lhmask.git
steps:
- name: Instalando dependencias
run: |
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 }}