Skip to content

Commit

Permalink
fix(ci): branch filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Dec 17, 2024
1 parent 47b130c commit ebee54c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-update-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ concurrency:

on:
pull_request:
types:
- opened
- synchronize
branches:
- release-please--branches--main--components-*
- main

jobs:
getChangedChart:
if: startsWith(github.head_ref, 'release-please--branches--main--components--')
uses: ./.github/workflows/get-changed-chart.yaml
with:
pr_number: ${{ github.event.pull_request.number }}
update-metadata-files:
if: startsWith(github.head_ref, 'release-please--branches--main--components--')
runs-on: ubuntu-latest
needs: getChangedChart
name: update metadata file for release
Expand All @@ -25,12 +24,13 @@ jobs:
CHART: ${{ needs.getChangedChart.outputs.chart }}
steps:
- name: Validate changed chart
if: ${{ needs.getChangedChart.outputs.found == 'true' }}
if: ${{ needs.getChangedChart.outputs.found != 'true' }}
run: |
echo 'No chart has been changed?' >&2
exit 1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ secrets.ACTIONS_BOT_TOKEN }}

Expand Down

0 comments on commit ebee54c

Please sign in to comment.