Skip to content

ci:(gitlab-mirror.yml): add name to mirror job #3

ci:(gitlab-mirror.yml): add name to mirror job

ci:(gitlab-mirror.yml): add name to mirror job #3

Workflow file for this run

name: Sync GitLab mirror
on:
push:
branches: [ "main" , "dev" ]
jobs:
mirror:
name: Mirror
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to GitLab
env:
GITLAB_URL: gitlab.com/iahmadgad/termux-clock.git
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
BRANCH: ${{ github.ref_name }}
run: |
git remote add gitlab "$GITLAB_URL"
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git push https://oauth2:$GITLAB_TOKEN@$GITLAB_URL $BRANCH --force