|
32 | 32 | - name: Check and Update Dash Dependency |
33 | 33 | id: update_dash |
34 | 34 | run: | |
| 35 | + set -e # Stop execution on any error |
| 36 | +
|
35 | 37 | # Get the current version of Dash in package.json |
36 | 38 | CURRENT_DASH_VERSION=$(jq -r '.dependencies.dash // .devDependencies.dash' package.json) |
37 | 39 | |
@@ -66,25 +68,16 @@ jobs: |
66 | 68 | echo "needs_update=false" >> $GITHUB_ENV |
67 | 69 | fi |
68 | 70 |
|
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 |
82 | 72 | - name: Create Pull Request |
83 | 73 | if: env.needs_update == 'true' |
84 | 74 | uses: peter-evans/create-pull-request@v5 |
85 | 75 | with: |
86 | 76 | token: ${{ secrets.GITHUB_TOKEN }} |
87 | 77 | 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" |
89 | 80 | 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