diff --git a/.github/actions/generate-swift-dependencies/convert-dependency-graph.swift b/.github/actions/generate-swift-dependencies/convert-dependency-graph.swift index a969b81..80f0025 100755 --- a/.github/actions/generate-swift-dependencies/convert-dependency-graph.swift +++ b/.github/actions/generate-swift-dependencies/convert-dependency-graph.swift @@ -1,4 +1,4 @@ -#!/usr/bin/env swift -enable-upcoming-feature ExistentialAny -enable-upcoming-feature BareSlashRegexLiterals +#!/usr/bin/env -S swift -enable-upcoming-feature ExistentialAny -enable-upcoming-feature BareSlashRegexLiterals import Foundation diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 6dfb63a..5ff11fe 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -51,7 +51,7 @@ env: # We use the unversioned "jammy" docker tag to specify the "latest" Swift release in several jobs. jobs: api-breakage: - if: ${{ inputs.with_public_api_check && !(github.event.pull_request.draft || false) }} + if: ${{ inputs.with_public_api_check && !(github.event.pull_request.draft || false) && github.event_name == 'pull_request' }} runs-on: ubuntu-latest container: swift:jammy timeout-minutes: 60