Skip to content

Commit 63eeda2

Browse files
committed
Update bump version workflow
1 parent 0766aab commit 63eeda2

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/bump.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,23 @@ jobs:
7878
git config --global user.name "${{ github.actor }}-ci-automation"
7979
git config --global user.email "${{ env.GITHUB_GIT_EMAIL }}"
8080
81-
- name: Check for changes
82-
run: git diff --quiet || git commit -am "Update dependencies"
81+
- name: Make changes and commit
82+
run: |
83+
DATE=$(date +'%Y-%m-%d')
84+
BRANCH_NAME="bump/deps-${DATE}"
85+
86+
git checkout -b "$BRANCH_NAME"
87+
git add .
88+
git commit -m "Automated update on ${DATE}"
8389
84-
- name: Push changes
85-
if: success()
86-
run: git push origin HEAD
90+
- name: Push changes to a new branch
91+
run: git push origin "$BRANCH_NAME"
92+
93+
- name: Create a Pull Request
94+
uses: peter-evans/create-pull-request@v5
95+
with:
96+
token: ${{ secrets.GITHUB_TOKEN }}
97+
branch: '$BRANCH_NAME'
98+
base: dev
99+
title: 'Automated Dependency Update on ${DATE}'
100+
body: 'This pull request has been automatically created by GitHub Actions.'

0 commit comments

Comments
 (0)