Add support for LFS in GitHub action for GitLab mirroring #992
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: Mirror and run GitLab CI | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Mirror + trigger CI | |
uses: SvanBoxel/gitlab-mirror-and-ci-action@master | |
with: | |
args: "https://${{ secrets.GITLAB_HOSTNAME }}/sertit/libraries/eoreader" | |
env: | |
GITLAB_HOSTNAME: ${{ secrets.GITLAB_HOSTNAME }} | |
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }} | |
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} | |
GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |