Skip to content

Commit

Permalink
ci: skip jobs when ci is mark skipped ; skip ci
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Losoponkul <pat.losoponkul@iohk.io>
  • Loading branch information
Pat Losoponkul committed May 22, 2024
1 parent 32b33ab commit 3ff0e03
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,26 @@ on:
pull_request:

jobs:
build-and-unit-tests-debug:
name: "Build and unit tests debug"
runs-on: self-hosted
container:
image: ghcr.io/hyperledger-labs/ci-debian-jdk-22:0.1.0
volumes:
- /nix:/nix
env:
TESTCONTAINERS_RYUK_DISABLED: true
SHOULD_RUN: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
steps:
- name: Log SHOULD_RUN
id: log-should-run
run: |
env | grep SHOULD_RUN
build-and-unit-tests:
name: "Build and unit tests"
runs-on: self-hosted
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
container:
Expand Down

0 comments on commit 3ff0e03

Please sign in to comment.