forked from latchset/pkcs11-provider
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (52 loc) · 1.44 KB
/
test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
name: Faux Scan
on:
pull_request:
branches: ["main"]
types:
- synchronize
- labeled
jobs:
on-labeled-pr:
if: ${{ contains(github.event.action, 'labeled') && contains(github.event.*.labels.*.name, 'covscan-ok') }}
name: Fail PR
runs-on: ubuntu-latest
steps:
- name: Fail Step
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
false
on-synchronize:
if: ${{ contains(github.event.action, 'synchronize') && contains('no-covscan', github.event.pull_request.labels.*.name) }}
name: Fail Again
runs-on: ubuntu-latest
steps:
- name: Fail Step
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
false
delabel:
if: ${{ contains(github.event.action, 'synchronize') && contains('covscan-ok', ithub.event.pull_request.labels.*.name) }}
name: Fail on changed files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check changed files
id: changed-sources
uses: tj-actions/changed-files@v44
src:
- src/**
- name: Fail on changed files
if: steps.changed-sources.outputs.any_changed == 'true'
run: |
false
- name: Fail Step
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
false