use counters for counting elements (#29) #57
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: Mirroring | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
to_gitlab: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
env: | |
token: ${{ secrets.GITLAB_ACCESS_TOKEN }} | |
- name: Push To Gitlab | |
run: | | |
echo Starting to push repo to gitlab | |
git config user.name "githubBot" | |
git config user.email "[email protected]" | |
git remote add gitlab "https://githubBot:${{ secrets.GITLAB_ACCESS_TOKEN }}@gitlab.probesys.com/troizaire/ootemplate.git" | |
git fetch --all | |
git push gitlab master:master |