Skip to content

Commit

Permalink
feat(workflow): add comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoSaba committed Dec 11, 2024
1 parent 1d8cbaf commit d325479
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@ jobs:
uses: actions/checkout@v4
with:
ref: master
- name: Update Tag in YAML File
- name: Check latest version
id: check-latest-version
run: |
LATEST_VERSION=$(yq eval '.version' charts/kestra/Chart.yaml)
echo "LATEST_VERSION = ${LATEST_VERSION}"
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
- name: Compare versions
uses: jackbilestech/[email protected]
with:
head: ${{ env.HELM_CHART_VERSION }}
base: ${{ env.LATEST_VERSION }}
operator: '>'
- name: Update version and appVersion in Chart.yaml File
id: edit-chart-version
run: |
git config user.name "${{ env.CI_COMMIT_AUTHOR }}"
Expand Down

0 comments on commit d325479

Please sign in to comment.