Skip to content

Commit

Permalink
Update release-chart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed May 30, 2024
1 parent 83a411f commit 21ce158
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,23 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git fetch origin gh-pages:gh-pages
git checkout gh-pages
helm repo index . --url https://eth-cscs.github.io/firecrestspawner --merge index.yaml
mv gh_/*tgz .
helm repo index . --url https://eth-cscs.github.io/firecrestspawner --merge index.yaml
NEW_BRANCH="update-helm-repo-$(date +%s)"
git checkout -b $NEW_BRANCH
git add *.tgz index.yaml
git commit -m "Update Helm repo"
git push origin gh-pages
git commit -m "update helm repo"
git push 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'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 21ce158

Please sign in to comment.