Skip to content

Commit

Permalink
[dev-v2.10] auto bump trigger (#4852)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasSUSE authored Dec 12, 2024
1 parent 7d8b1fd commit e1c44de
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/auto-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: Log Event Payload
run: |
echo "Raw Payload: ${{ github.event.inputs.payload }}"
echo "Payload: ${{ fromJson(github.event.inputs.payload) }}"
- name: Parse JSON Payload
id: parse_payload
Expand All @@ -34,3 +33,19 @@ jobs:
run: |
echo "make chart-bump package=${{ env.PACKAGE }} branch=${{ env.BRANCH }}"
make chart-bump package="${{ env.PACKAGE }}" branch="${{ env.BRANCH }}"
- name: Configure Git for Commit
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Git Add, Commit, Push Changes
run: |
git add .
git commit -m "Auto bump chart version for ${PACKAGE}"
git push origin ${{ env.BRANCH }}
- name: Create Pull Request
run: |
gh auth login --with-token < ${{ secrets.GITHUB_TOKEN }}
gh pr create --base ${{ env.BRANCH }} --head ${{ github.sha }} --title "[${env.BRANCH}] auto bump: ${PACKAGE}" --body "This PR auto-bumps the chart version for ${PACKAGE}"

0 comments on commit e1c44de

Please sign in to comment.