Skip to content

Commit

Permalink
Update merge-main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Jul 24, 2023
1 parent f56abc9 commit 0b22c00
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
release:
pre-release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -66,15 +66,29 @@ jobs:
repository: ${{ github.repository }}/nr-oracle-service-init
target: test
tags: ${{ steps.tag.outputs.tag }}

- name: Configure Git
- name: Update Chart.yaml
if: ${{ steps.tag.outputs.tag != '' }}
run: |
cd charts/nr-oracle-service
sed -i "s/^appVersion:.*/appVersion: ${{ steps.tag.outputs.tag }}/g" Chart.yaml
git add Chart.yaml
git commit -m "Update appVersion to ${{ steps.tag.outputs.tag }}"
git push origin main
release:
runs-on: ubuntu-22.04
needs: pre-release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
if: ${{ steps.tag.outputs.tag != '' }}
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 0b22c00

Please sign in to comment.