Skip to content

Commit

Permalink
exclude build-image gha if just changing changelog (#13065)
Browse files Browse the repository at this point in the history
* exclude build-image gha if just changing changelog

* fix
  • Loading branch information
momentmaker authored May 2, 2024
1 parent 5633b51 commit 4e62b15
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build-publish-untrusted:
if: ${{ ! startsWith(github.ref_name, 'release/') }}
if: ${{ ! startsWith(github.ref_name, 'release/') || (! startsWith(github.head_ref, 'release/') && ! startsWith(github.ref_name, 'chore/'))}}
runs-on: ubuntu-20.04
environment: sdlc
permissions:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,39 @@ on:
jobs:
build-chainlink:
runs-on: ubuntu-20.04
if: ${{ ! startsWith(github.head_ref, 'release/') && ! startsWith(github.ref_name, 'chore/') }}
steps:
- name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: change
with:
predicate-quantifier: every
filters: |
changelog-only:
- 'CHANGELOG.md'
- '!common/**'
- '!contracts/**'
- '!core/**'
- '!crib/**'
- '!dashboard-lib/**'
- '!fuzz/**'
- '!integration-tests/**'
- '!internal/**'
- '!operator_ui/**'
- '!plugins/**'
- '!tools/**'
- name: Build chainlink image
if: ${{ steps.change.outputs.changelog-only == 'false' }}
uses: ./.github/actions/build-sign-publish-chainlink
with:
dockerhub_username: ${{ secrets.DOCKERHUB_READONLY_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_READONLY_PASSWORD }}
publish: false
sign-images: false

- name: Collect Metrics
if: always()
id: collect-gha-metrics
Expand Down

0 comments on commit 4e62b15

Please sign in to comment.