Skip to content

Commit 5452a21

Browse files
committed
Update bump workflow
1 parent efaaaa6 commit 5452a21

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DB_CONNECTION=mysql
1616
DB_HOST=ls_dev_db
1717
DB_PORT=3306
1818
DB_DATABASE=laravel_starter
19-
DB_USERNAME=laravel_starter
19+
DB_USERNAME=root
2020
DB_PASSWORD=laravel_starter
2121

2222
BROADCAST_DRIVER=log

.github/workflows/bump.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,28 @@ jobs:
7373
- name: 🏗 Build Frontend with Vite
7474
run: pnpm build
7575

76-
- name: Set up Git user
76+
- name: 👤 Set up Git user
7777
run: |
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: 🌿 Create a new branch
82+
run: |
83+
NEW_BRANCH="update/bump-dependency-versions-$(date +'%d-%m-%Y')"
84+
git checkout -b "$NEW_BRANCH"
85+
86+
- name: 🔍 Check for changes and commit
87+
run: |
88+
git diff --quiet || git commit -am "Update dependencies"
8389
84-
- name: Push changes
90+
- name: 🚀 Push changes
8591
if: success()
86-
run: git push origin HEAD
92+
run: git push origin "$NEW_BRANCH"
93+
94+
- name: 🔀 Create Pull Request
95+
uses: repo-sync/pull-request@v2
96+
with:
97+
source_branch: ${{ steps.create-branch.outputs.NEW_BRANCH }}
98+
destination_branch: main
99+
pr_title: 'Bump dependencies'
100+
pr_body: 'This PR updates the project dependencies.'

0 commit comments

Comments
 (0)