Skip to content

Commit

Permalink
modified action to MARK_AS_LATEST
Browse files Browse the repository at this point in the history
  • Loading branch information
mguptahub committed Jun 13, 2024
1 parent bcae3ea commit 5e5a8f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
TARGET_BRANCH: "${{ github.ref_name }}"
MARK_AS_LATEST: "true"

jobs:
setup:
Expand Down Expand Up @@ -53,13 +54,17 @@ jobs:
sed -i "s/name: \(.*\)/name: \1-${flatBranchName}/" charts/plane-ce/Chart.yaml
sed -i "s/name: \(.*\)/name: \1-${flatBranchName}/" charts/plane-enterprise/Chart.yaml
echo "MARK_AS_LATEST=false" >> "$GITHUB_ENV" #saving private key into github-environemnt
- name: Release Charts
uses: helm/[email protected]
with:
charts_dir: charts
config: cr.yaml
packages_with_index: false
skip_existing: true
mark_as_latest: ${{ env.MARK_AS_LATEST == 'true' }}
env:
CR_TOKEN: ${{ env.CR_TOKEN }}
CR_KEY: "Plane"
Expand Down

0 comments on commit 5e5a8f3

Please sign in to comment.