Skip to content

Commit

Permalink
Trigger gitlab CI when pushing to github
Browse files Browse the repository at this point in the history
This is just a test to learn how github actions work
  • Loading branch information
lmoellendorf committed Feb 11, 2024
1 parent 56e73ff commit 7a0e189
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/trigger-gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: trigger-gitlab-ci
run-name: ${{ github.event_name }} triggered by ${{ github.actor }}

on: [push]

jobs:
trigger-gitlab-ci:
runs-on: ubuntu-latest
steps:
- name: Trigger CI
run: curl -X POST --fail -F token=${{ secrets.TRIGGER_GITLAB_CI }} -F ref=${{ github.GITHUB_REF }} https://gitlab.com/api/v4/projects/42797718/trigger/pipeline

0 comments on commit 7a0e189

Please sign in to comment.