-
Notifications
You must be signed in to change notification settings - Fork 154
53 lines (50 loc) · 1.33 KB
/
build.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
branches:
- master
tags:
- v**
jobs:
build-docker:
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate Docker meta names
uses: docker/metadata-action@v3
id: meta
with:
images: convictional/trigger-workflow-and-wait
tags: |
type=ref,event=tag
type=raw,enable=${{ !startsWith(github.ref, 'refs/tags/') }},value=master
- name: Build Docker image
uses: docker/build-push-action@v2
with:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: .
self-test:
name: Run self-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
owner: ${{ github.repository_owner }}
repo: trigger-workflow-and-wait
ref: ${{ github.event.repository.default_branch || 'master' }}
github_token: ${{ secrets.SECRET_PERSONAL_TOKEN }}
workflow_file_name: selftest.yaml
client_payload: '{"test": "true"}'
wait_interval: 11
trigger_workflow: true
wait_workflow: true
propagate_failure: true