-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 2.32 KB
/
trigger-workflows.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Trigger Workflows
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
# If any commit message in your push or the HEAD commit of your PR contains the strings
# [skip ci], [ci skip], [no ci], [skip actions], or [actions skip]
# workflows triggered on the push or pull_request events will be skipped.
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
push:
# Publish semver tags as releases.
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
target_version:
description: 'Target version to release this repository e.g. 0.0.0'
required: false
default: ''
type: string
current_version:
description: 'Current released version of this repository e.g. 0.0.0'
required: false
default: ''
type: string
jobs:
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
test-identityprovider:
name: "Test Open Policy Agent Rego"
uses: ./.github/workflows/test-identityprovider.yaml
secrets: inherit
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
discussions: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
github-releases:
name: "Create Github Releases with Packages"
needs:
- test-identityprovider
if: ${{ github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/github-releases.yaml
secrets: inherit
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: write
deployments: none
issues: none
discussions: none
packages: read
pull-requests: none
repository-projects: none
security-events: none
statuses: none