-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (31 loc) · 940 Bytes
/
main.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
name: Integration test
on:
push:
branches:
- main
tags-ignore:
- '*'
workflow_dispatch:
jobs:
test_job:
runs-on: ubuntu-latest
name: A test job
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test action step
uses: ./
id: test
with:
# Triggers https://gitlab.com/digital-blueprint/gitlab-pipeline-trigger-action-example/-/pipelines
host: 'gitlab.com'
trigger_token: ${{ secrets.DEPLOY_TRIGGER_TOKEN }}
# not needed for public repos
#access_token: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
id: '44347238'
ref: 'main'
variables: '{"VAR1":"value1","VAR2":"value2"}'
- name: Get the output status
run: echo "The status was ${{ steps.test.outputs.status }}"
- name: Get the output web_url
run: echo "The web_url was ${{ steps.test.outputs.web_url }}"