Skip to content

Commit

Permalink
Merge pull request #892 from Homebrew/sync-shared-config
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab authored Oct 31, 2024
2 parents 2d9eea1 + 2263084 commit 91aa950
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is synced from the `.github` repository, do not modify it directly.
name: Workflow Syntax
name: Actionlint

on:
push:
Expand Down Expand Up @@ -31,6 +31,8 @@ jobs:
workflow_syntax:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Set up Homebrew
id: setup-homebrew
Expand Down Expand Up @@ -63,7 +65,11 @@ jobs:
upload_sarif:
needs: workflow_syntax
# We want to always upload this even if `actionlint` failed.
if: always() && !contains(fromJSON('[["cancelled", "skipped"]]'), needs.workflow_syntax.result)
# This is only available on public repositories.
if: >
always() &&
!contains(fromJSON('[["cancelled", "skipped"]]'), needs.workflow_syntax.result) &&
!github.event.repository.private
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 91aa950

Please sign in to comment.