diff --git a/.github/workflows/trigger_ci.yml b/.github/workflows/trigger_ci.yml new file mode 100644 index 000000000..cf1bfbbdd --- /dev/null +++ b/.github/workflows/trigger_ci.yml @@ -0,0 +1,20 @@ +on: + pull_request: +jobs: + mirror_repo: + environment: GITLAB + runs-on: self-hosted + steps: + - name: Sync Mirror Repository + run: | + #!/bin/bash + curl --request POST --header "PRIVATE-TOKEN:${{ secrets.TOKEN }}" "${{ secrets.MIRROR_URL }}" + trigger-ci: + environment: GITLAB + needs: mirror_repo + runs-on: self-hosted + steps: + - name: Trigger Pipeline + run: | + #!/bin/bash + curl --fail --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_HEAD_REF} "${{ secrets.PIPELINE_URL }}"