Skip to content

Commit e17d6bb

Browse files
authored
ci: update action to work correctly (#48)
* ci: set the base branch to main for pull requests * ci: debug * ci: remove unnecessary section * ci: update pr title * ci: exit on error * ci: update pr body * ci: add reviewer and commit message
1 parent 9d99e18 commit e17d6bb

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/dependency-update.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
- name: Check and Update Dash Dependency
3333
id: update_dash
3434
run: |
35+
set -e # Stop execution on any error
36+
3537
# Get the current version of Dash in package.json
3638
CURRENT_DASH_VERSION=$(jq -r '.dependencies.dash // .devDependencies.dash' package.json)
3739
@@ -66,25 +68,16 @@ jobs:
6668
echo "needs_update=false" >> $GITHUB_ENV
6769
fi
6870
69-
# Step 5: Commit and Push Changes if Needed
70-
- name: Commit and Push Changes
71-
if: env.needs_update == 'true'
72-
run: |
73-
git config user.name "github-actions[bot]"
74-
git config user.email "github-actions[bot]@users.noreply.github.com"
75-
76-
git checkout -b update-dash-and-version
77-
git add package.json package-lock.json
78-
git commit -m "chore: update dash dependency and sync version to $NEW_PACKAGE_VERSION"
79-
git push origin update-dash-and-version
80-
81-
# Step 6: Create Pull Request
71+
# Step 5: Create Pull Request
8272
- name: Create Pull Request
8373
if: env.needs_update == 'true'
8474
uses: peter-evans/create-pull-request@v5
8575
with:
8676
token: ${{ secrets.GITHUB_TOKEN }}
8777
branch: update-dash-and-version
88-
title: "Update Dash Dependency and Sync Version"
78+
base: main
79+
title: "chore: update Dash dependency and sync version"
8980
body: |
90-
This pull request updates the `dash` dependency to the latest version and syncs the package version to `$NEW_PACKAGE_VERSION`, aligning the minor and patch versions with `dash`.
81+
This pull request updates the `dash` dependency to the latest version and syncs the package version, aligning the minor and patch versions with `dash`.
82+
commit-message: "chore: update Dash dependency and sync version"
83+
reviewers: "thephez"

0 commit comments

Comments
 (0)