diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 72106e5..102b332 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -36,12 +36,12 @@ cache-mode: none jobs: auto-merge-pull-request: + if: github.event.pull_request.user.login == 'dependabot[bot]' && (inputs.major || inputs.minor || inputs.patch) permissions: contents: read pull-requests: read cache-mode: none runs-on: ubuntu-slim - if: github.event.pull_request.user.login == 'dependabot[bot]' && (inputs.major || inputs.minor || inputs.patch) steps: - if: ${{ !contains(fromJSON('["merge", "squash", "rebase"]'), inputs.strategy) }} run: | diff --git a/.github/workflows/lint-go.yml b/.github/workflows/lint-go.yml index 9b7ed5a..11cbbd9 100644 --- a/.github/workflows/lint-go.yml +++ b/.github/workflows/lint-go.yml @@ -65,11 +65,11 @@ jobs: GOEXPERIMENT: ${{ inputs.go-experiment }} golangci-lint: + if: ${{ inputs.golangci-lint }} permissions: security-events: write contents: read actions: read - if: ${{ inputs.golangci-lint }} runs-on: ubuntu-26.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index 9e0e7cd..fd0fcc7 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -72,9 +72,9 @@ jobs: - run: composer-normalize --dry-run php-matrix: + if: ${{ inputs.phpstan || inputs.mago }} permissions: contents: read - if: ${{ inputs.phpstan || inputs.mago }} runs-on: ubuntu-slim outputs: versions: ${{ steps.php-matrix.outputs.versions }} @@ -90,10 +90,11 @@ jobs: id: php-matrix phpstan: + if: ${{ inputs.phpstan }} + needs: + - php-matrix permissions: contents: read - if: ${{ inputs.phpstan }} - needs: php-matrix runs-on: ubuntu-26.04 strategy: matrix: @@ -118,10 +119,11 @@ jobs: - run: vendor/bin/phpstan analyse --error-format=github mago: + if: ${{ inputs.mago }} + needs: + - php-matrix permissions: contents: read - if: ${{ inputs.mago }} - needs: php-matrix runs-on: ubuntu-26.04 strategy: matrix: @@ -150,9 +152,9 @@ jobs: - run: mago analyze box: + if: ${{ inputs.box }} permissions: contents: read - if: ${{ inputs.box }} runs-on: ubuntu-26.04 steps: - parallel: