Skip to content

Commit

Permalink
Add trigger for internal gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Sep 24, 2024
1 parent d76ad66 commit 0858cf4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Diff
on:
workflow_run:
workflows: ["PR Automation"]
branches: ["*"]
types:
- completed

jobs:
render-diff:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Trigger diff on internal gitalb
run: |
curl -X POST \
--fail \
-F token=${{ secrets.GITLAB_CI_TOKEN }} \
-F ref=add/pipeline \
-F "variables[BRANCH]=${{ steps.extract_branch.outputs.branch }}" \
https://git.vshn.net/api/v4/projects/58084/trigger/pipeline

0 comments on commit 0858cf4

Please sign in to comment.