Skip to content

Commit

Permalink
fix(action-pr): fixing creating of pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
electrosenpai committed Oct 29, 2024
1 parent 5c74d4e commit b76df8a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/creating_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
Expand All @@ -25,19 +27,16 @@ jobs:
sed -i "s/^appVersion:.*/appVersion: '${{ github.event.inputs.tag }}'/" Chart.yaml
sed -i "s/^version:.*/version: ${{ github.event.inputs.tag }}/" values.yaml
- name: Commit changes
run: |
git checkout -b release/${{ github.event.inputs.tag }}
git add Chart.yaml values.yaml
git commit -m "chore(release): update to ${{ github.event.inputs.tag }}"
git push origin release/${{ github.event.inputs.tag }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore(release): update to ${{ github.event.inputs.tag }}"
branch: release/${{ github.event.inputs.tag }}
base: main
base: main
title: "Release ${{ github.event.inputs.tag }}"
body: "This PR updates the chart versions to ${{ github.event.inputs.tag }}."
labels: release
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
update-existing-pr: true

0 comments on commit b76df8a

Please sign in to comment.