-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3865eac
commit 773108c
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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: trigger Gitlab pipeline | ||
shell: bash | ||
env: | ||
GITLAB_CI_TOKEN: ${{ secrets.GITLAB_CI_TOKEN }} | ||
run: | | ||
curl --request POST \ | ||
--form token="$GITLAB_CI_TOKEN" \ | ||
--form ref=ci-create-release \ | ||
--form variables[API_CALL]="true" \ | ||
--form variables[REPOSITORY_URL]="[email protected]:etalab/data.gouv.fr/simple-scaffold.git" \ | ||
--form variables[REPOSITORY_NAME]="simple-scaffold" \ | ||
--form variables[RELEASE_VERSION]="1.0.0" \ | ||
"https://gitlab.com/api/v4/projects/15835569/trigger/pipeline" |