Skip to content

Commit

Permalink
ci: Skip CodeQL if PR has a 'ci:nolint' label (#317)
Browse files Browse the repository at this point in the history
Also, allow to avoid job termination via 'ci:full'
  • Loading branch information
berezovskyi authored Apr 27, 2023
1 parent 5dc81a0 commit 4f9d9a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:nolint') }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ This project uses Maven as the build system for all Java projects except those w
The Eclipse Lyo project page is located at https://projects.eclipse.org/projects/technology.lyo. It points to the information regarding source code management, builds, coding standards, and more.

You are also welcome to contact the development team via [lyo-dev mailing list](https://dev.eclipse.org/mailman/listinfo/lyo-dev) or on Slack (ask for an invite on the mailing list or by a PM to [@andrew](https://forum.open-services.net/u/andrew)).

## PRs

- Use `ci:nolint` label to skip CodeQL checks on all commits in a PR.
- Use `ci:full` label to prevent CI from termanating running jobs if you push a new commit to a PR.

0 comments on commit 4f9d9a4

Please sign in to comment.