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 c836eee commit b2b1469
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
helm repo index . --url https://eth-cscs.github.io/firecrestspawner --merge index.yaml
NEW_BRANCH="update-helm-repo-$(date +%s)"
echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV
git checkout -b $NEW_BRANCH
git add *.tgz index.yaml
git commit -m "update helm repo"
Expand All @@ -54,7 +56,9 @@ jobs:
# -d '{"title":"Update Helm repo","head":"'"$NEW_BRANCH"'","base":"gh-pages"}' \
# https://api.github.com/repos/${{ github.repository }}/pulls | jq -r '.url'
# create pull request
gh pr create -B $NEW_BRANCH -H gh-pages --title '[release-chart] Update Helm repo' --body 'Created by Github action'
- name: Create pull request
run: |
gh pr create -H $NEW_BRANCH --B gh-pages --title '[release-chart] Update Helm repo' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_BRANCH: ${{ env.NEW_BRANCH }}

0 comments on commit b2b1469

Please sign in to comment.