forked from buildkite/trigger-pipeline-action
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.24 KB
/
verify.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
name: Verify
on: push
jobs:
tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify that the Docker image for the action builds
run: docker build . --file Dockerfile
- name: Run action with minimal parameters
uses: ./
with:
buildkite_api_access_token: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }}
pipeline: "lzrinc/experimental-pipeline"
message: Triggered from GHA using minimal parameters
branch: master
commit: HEAD
- name: Run action with all parameters
uses: ./
id: tests
with:
buildkite_api_access_token: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }}
pipeline: "lzrinc/experimental-pipeline"
branch: dev
commit: HEAD
message: ":buildkite::github: 🚀🚀🚀 Triggered from GHA using commit message: ${{ github.event.head_commit.message }}"
build_env_vars: '{"TRIGGERED_FROM_GHA": "true"}'
build_meta_data: '{"FOO": "bar"}'
ignore_pipeline_branch_filter: true
- name: Verify output
run: echo ${{join(steps.tests.outputs.*, '\n')}}