Skip to content

Commit

Permalink
Use correct skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Nov 20, 2023
1 parent d3a60e2 commit c89b341
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci-unit-tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ on:
default: false

pull_request:
# Skip PRs from external repositories, let them pass, and then Mergify will check them
branches:
# Include all branches
- '**'
# Exclude external repositories
- '!**/**'
# But include mergify and dependabot
- 'mergify/**'
- 'dependabot/**'
# Skip PRs where Rust code and dependencies aren't modified.
paths:
# code and tests
Expand Down Expand Up @@ -98,6 +89,8 @@ jobs:
# testnet when running the image.
build:
name: Build CI Docker
# Skip PRs from external repositories, let them pass, and then Mergify will check them
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
uses: ./.github/workflows/sub-build-docker-image.yml
with:
dockerfile_path: ./docker/Dockerfile
Expand Down

0 comments on commit c89b341

Please sign in to comment.