Skip to content

Commit

Permalink
fix(ci): fix workflows to run when required to avoid empty required c…
Browse files Browse the repository at this point in the history
…hecks (#3342)

* fix(ci): fix workflows to run when required to avoid empty required checks
  • Loading branch information
GenPage authored Apr 20, 2023
1 parent 96ab0ab commit d88857b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/workflows/atlantis-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'Dockerfile'
- 'docker-entrypoint.sh'
- '.github/workflows/atlantis-image.yml'
- '**.go'
workflow_dispatch:

concurrency:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/codeql-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ name: "CodeQL"
on:
push:
branches: [ "main" ]
paths:
- '.github/**'
paths-ignore:
- '**.go'
- '**.js'
pull_request:
# The branches below must be a subset of the branches above
types:
Expand All @@ -16,8 +17,9 @@ on:
- synchronize
- ready_for_review
branches: [ "main" ]
paths:
- '.github/**'
paths-ignore:
- '**.go'
- '**.js'

jobs:
analyze:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ name: "CodeQL"
on:
push:
branches: [ "main" ]
paths-ignore:
- '.github/**'
paths:
- '**.go'
- '**.js'
pull_request:
# The branches below must be a subset of the branches above
types:
Expand All @@ -24,8 +25,10 @@ on:
- synchronize
- ready_for_review
branches: [ "main" ]
paths-ignore:
- '.github/**'
paths:
- '**.go'
- '**.js'

schedule:
- cron: '17 9 * * 5'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
- ready_for_review
branches:
- "main"
paths:
- 'runatlantis.io/**'
- '.github/**'
- '**.md'
paths-ignore:
- '**.go'
- 'go.*'
- '.github/workflows/linter.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
- ready_for_review
branches:
- "main"
paths-ignore:
- 'runatlantis.io/**'
- '.github/**'
- '**.md'
paths:
- '**.go'
- 'go.*'
- '.github/workflows/linter.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down

0 comments on commit d88857b

Please sign in to comment.