Skip to content

Commit

Permalink
Update release-chart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm authored May 30, 2024
1 parent 273944b commit c836eee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
run: |
helm package chart/
rm -rf chart/Chart.lock chart/charts/
# move the packages to a directory to avoid issues
# when checking out to `gh-pages`
mkdir gh_
mv *.tgz gh_
Expand All @@ -44,14 +47,14 @@ jobs:
git checkout -b $NEW_BRANCH
git add *.tgz index.yaml
git commit -m "update helm repo"
git push origin $NEW_BRANCH
git push -u origin $NEW_BRANCH
# Create a pull request
# curl -s -u "${{ secrets.GH_PAT }}:x-oauth-basic" \
# -d '{"title":"Update Helm repo","head":"'"$NEW_BRANCH"'","base":"gh-pages"}' \
# https://api.github.com/repos/${{ github.repository }}/pulls | jq -r '.url'
# Create a pull request
# create pull request
gh pr create -B $NEW_BRANCH -H gh-pages --title '[release-chart] Update Helm repo' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c836eee

Please sign in to comment.