Skip to content

feat: test1

feat: test1 #3

name: Sync from Bitbucket
on:
push:
branches:
- master
workflow_dispatch:
repository_dispatch:
types: [bitbucket_push]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
repository: https://bitbucket.org/ciandt_it/devops-test
token: ${{ secrets.BITBUCKET_TOKEN }}
- name: Sync to GitHub
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git remote add github <https://x-access-token>:${{ secrets.GH_TOKEN }}@github.com/ciandt-china-dev/test_devops.git
git push github master --force