Skip to content

Commit

Permalink
Update .push-helm-chart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Jan 9, 2024
1 parent 378c477 commit febf82a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/.push-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ jobs:
git commit -m "update helm chart ${{ inputs.tag }}" || true # Avoids failure if there's nothing to commit
git push --set-upstream origin update-helm-chart-${{ inputs.tag }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
branch: update-helm-chart-${{ inputs.tag }}
title: "feat: update helm ${{ inputs.tag }}"
body: "Helm updates"
token: ${{ secrets.GITOPS_PAT }} # GITHUB_TOKEN is still needed for PR creation
- name: Create Pull Request via GitHub API
env:
GITHUB_TOKEN: ${{ secrets.GITOPS_PAT }}
run: |
curl \
-X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ vars.GITOPS_REPO }}/pulls \
-d "{\"title\": \"Update Helm Chart\", \"head\": \"update-helm-chart-${{ inputs.tag }}\", \"base\": \"main\", \"body\": \"Automated update of Helm chart\"}"

0 comments on commit febf82a

Please sign in to comment.