Skip to content

Commit

Permalink
Testing some stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Jun 4, 2024
1 parent 23de726 commit f70dd6f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
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

0 comments on commit f70dd6f

Please sign in to comment.