-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.02 KB
/
trigger-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Trigger pages
on:
workflow_dispatch:
workflow_call:
secrets:
BOT_GITHUB_TOKEN:
required: true
GITLAB_TRIGGER_TOOLS:
required: true
jobs:
pages:
name: tools.uniget.dev
runs-on: ubuntu-24.04
steps:
#- name: Trigger
# env:
# GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
# run: |
# curl --silent --verbose --show-error --fail \
# --request POST \
# --url https://api.github.com/repos/uniget-org/tools.uniget.dev/dispatches \
# --header "Authorization: token ${GITHUB_TOKEN}" \
# --header "Accept: application/vnd.github.v3+json" \
# --data '{"event_type": "pages"}'
- name: Trigger
env:
GITLAB_TRIGGER_TOOLS: ${{ secrets.GITLAB_TRIGGER_TOOLS }}
run: |
curl \
--request POST \
--fail \
--form "token=${GITLAB_TRIGGER_TOOLS}" \
--form "ref=main" \
--url https://gitlab.com/api/v4/projects/62817103/trigger/pipeline