Skip to content

Commit

Permalink
(wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanguedj committed Mar 5, 2024
1 parent ccb9e78 commit 3f46d03
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger Gitlab CI/CD pipeline
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
trigger-gitlab-pipeline:
runs-on: ubuntu-latest
steps:
- name: configure environment
shell: bash
run: |
echo "REPO_PUBLIC_URL=${{ github.server_url }}/${{ github.repository }}.git" >> $GITHUB_ENV
IFS='/' read -ra REPO_PARTS <<< "$GITHUB_REPOSITORY"
echo "REPO_NAME=${REPO_PARTS[1]}" >> $GITHUB_ENV
- name: clone repository
shell: bash
run: git clone --depth 1 -b ci-pipeline ${{ env.REPO_PUBLIC_URL }}
- name: trigger Gitlab pipeline
shell: bash
env:
GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }}
run: ./gitlab-ci-pipeline.sh
working-directory: ${{ env.REPO_NAME }}

0 comments on commit 3f46d03

Please sign in to comment.