Skip to content

Commit

Permalink
feat: do not create release if chart has beta dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed May 7, 2024
1 parent ace9a7f commit a0aa589
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,23 @@ on:
workflow_dispatch:

jobs:
stable-dependency-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Check if chart has any beta dependencies
uses: mikefarah/yq@master
with:
cmd: |
RESULT=$(yq '[.dependencies[].version] | any_c(contains("beta"))' chart/Chart.yaml agent-chart/Chart.yaml)
if [[ $RESULT =~ "true" ]]; then
echo "Charts contain beta dependencies"
exit 1
fi
semantic-release:
runs-on: ubuntu-latest
needs: stable-dependency-check
outputs:
release-version: ${{ steps.semantic.outputs.release-version }}
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
Expand Down

0 comments on commit a0aa589

Please sign in to comment.