checksum for secret change #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Charts | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
outputs: | |
release_status: ${{ steps.chart-releaser.outputs.changed }} | |
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: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Run chart-releaser | |
id: chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: helm | |
pages_branch: main | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
copy-index: | |
needs: release | |
if: needs.release.result == 'success' | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Move Updated File | |
run: | | |
cp index.yaml build/index.yaml | |
- name: Configure Git | |
run: | | |
git config --local user.name "github-actions[bot]" | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit and Push Changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git pull | |
git add build/index.yaml | |
git commit -m "Update index.yaml in build" | |
git push |