Skip to content

Commit

Permalink
change from id to action number
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Jul 11, 2024
1 parent e4a139b commit 3b82c02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ jobs:
- name: Update Charts
id: update_charts
run: |
sed -i 's/^version: .*/version: ${{ vars.APP_VERSION }}.${{github.run_id}}/' ./charts/docusaurus/Chart.yaml
sed -i 's/^appVersion: .*/appVersion: ${{ vars.APP_VERSION }}.${{github.run_id}}-${{ steps.commit_hash.outputs.short }}/' ./charts/docusaurus/Chart.yaml
sed -i 's/^version: .*/version: ${{ vars.APP_VERSION }}.${{github.run_number}}/' ./charts/docusaurus/Chart.yaml
sed -i 's/^appVersion: .*/appVersion: ${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}/' ./charts/docusaurus/Chart.yaml
sed -i 's/^imageTag: .*/imageTag: ${{ steps.commit_hash.outputs.short }}/' ./charts/docusaurus/values.yaml
sed -i 's/^version: .*/version: ${{ vars.APP_VERSION }}.${{github.run_id}}/' ./charts/typesense/Chart.yaml
sed -i 's/^appVersion: .*/appVersion: ${{ vars.APP_VERSION }}.${{github.run_id}}-${{ steps.commit_hash.outputs.short }}/' ./charts/typesense/Chart.yaml
git commit -am "Automatic commit from GitHub Actions triggered by action #${{github.run_id}}"
sed -i 's/^version: .*/version: ${{ vars.APP_VERSION }}.${{github.run_number}}/' ./charts/typesense/Chart.yaml
sed -i 's/^appVersion: .*/appVersion: ${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}/' ./charts/typesense/Chart.yaml
git commit -am "Automatic commit from GitHub Actions triggered by action #${{github.run_number}}"
git push origin main
Expand Down

0 comments on commit 3b82c02

Please sign in to comment.