Files
snigdhaos-arctic/.github/workflows/gitlab.yml
Eshan Roy (Eshanized) 3231328406 🧪 test(fix): GITLAB_REPO
2024-06-18 04:11:28 +05:30

22 lines
538 B
YAML

name: Push to GitLab
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
- name: Push to GitLab
env:
GITLAB_REPO: ${{ secrets.GITLAB_REPO }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git remote add gitlab https://${GITLAB_REPO##*/}.git
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git push gitlab master fix