An attempt at a couple of event publishers. #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gitlab-sync | |
on: | |
- push | |
- delete | |
- workflow_dispatch | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
name: Gitlab Sync | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: sync | |
run: | | |
git remote add target https://${{ secrets.TARGET_USERNAME }}:${{ secrets.TARGET_TOKEN }}@${{ secrets.TARGET_URL }} | |
git push -f --all target | |
git push -f --tags target |