-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (30 loc) · 999 Bytes
/
non-release.yaml
File metadata and controls
34 lines (30 loc) · 999 Bytes
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
name: Build Snapshot
on:
push:
pull_request:
pull_request_target:
types:
- labeled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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
secrets: inherit
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@master
needs:
- build
permissions:
id-token: write
contents: write