File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Trigger GitLab build job
2
+ on :
3
+ push :
4
+ branches :
5
+ - dev
6
+ env :
7
+ GITLAB_PIPELINE_TRIGGER_TOKEN : ${{ secrets.GITLAB_PIPELINE_TRIGGER_TOKEN }}
8
+ jobs :
9
+ trigger_build_job :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : send triggering request
13
+ run : |
14
+ curl -X POST \
15
+ --fail \
16
+ -F token=$GITLAB_PIPELINE_TRIGGER_TOKEN \
17
+ -F "ref=main" \
18
+ https://gitlab.kuleuven.be/api/v4/projects/17581/trigger/pipeline
Original file line number Diff line number Diff line change
1
+ name : Trigger GitLab build job
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ - dev
7
+ tags :
8
+ - ' v[0-9]+.[0-9]+.[0-9]+'
9
+ env :
10
+ GITLAB_PIPELINE_TRIGGER_TOKEN : ${{ secrets.GITLAB_PIPELINE_TRIGGER_TOKEN }}
11
+ jobs :
12
+
13
+ trigger_build_job :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : send triggering request
17
+ run : |
18
+ curl -X POST \
19
+ --fail \
20
+ -F token=$GITLAB_PIPELINE_TRIGGER_TOKEN \
21
+ -F "ref=main" \
22
+ -F "variables[RELEASE_VERSION]=${{github.ref_name}}" \
23
+ https://gitlab.kuleuven.be/api/v4/projects/17581/trigger/pipeline
24
+
25
+ package_release :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ - name : Create Release
31
+ id : create_release
32
+ uses : actions/create-release@v1
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ with :
36
+ tag_name : ${{ github.ref }}
37
+ release_name : ${{ github.ref }}
38
+ draft : true
39
+ prerelease : false
You can’t perform that action at this time.
0 commit comments