-
Notifications
You must be signed in to change notification settings - Fork 114
38 lines (36 loc) · 1.01 KB
/
non-release.yaml
File metadata and controls
38 lines (36 loc) · 1.01 KB
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: Build
on:
merge_group:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
pull_request_target:
types:
- labeled
push:
branches:
- 'master'
- 'release-*'
workflow_dispatch:
jobs:
build:
if: ${{ github.event_name != 'pull_request_target' || (github.event_name == 'pull_request_target' && github.event.label.name == vars.DEFAULT_LABEL_OK_TO_TEST && vars.DEFAULT_LABEL_OK_TO_TEST != '') }}
uses: ./.github/workflows/build.yaml
with:
mode: snapshot
permissions:
contents: read
packages: write
id-token: write
pull-requests: write
component-descriptor:
if: ${{ github.event_name != 'pull_request_target' || (github.event_name == 'pull_request_target' && github.event.label.name == vars.DEFAULT_LABEL_OK_TO_TEST && vars.DEFAULT_LABEL_OK_TO_TEST != '') }}
uses: gardener/cc-utils/.github/workflows/post-build.yaml@v1
needs:
- build
permissions:
id-token: write
contents: write