Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions .github/workflows/dependency-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: Check and Update Dash Dependency
id: update_dash
run: |
set -e # Stop execution on any error

# Get the current version of Dash in package.json
CURRENT_DASH_VERSION=$(jq -r '.dependencies.dash // .devDependencies.dash' package.json)

Expand Down Expand Up @@ -66,25 +68,16 @@ jobs:
echo "needs_update=false" >> $GITHUB_ENV
fi

# Step 5: Commit and Push Changes if Needed
- name: Commit and Push Changes
if: env.needs_update == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git checkout -b update-dash-and-version
git add package.json package-lock.json
git commit -m "chore: update dash dependency and sync version to $NEW_PACKAGE_VERSION"
git push origin update-dash-and-version

# Step 6: Create Pull Request
# Step 5: Create Pull Request
- name: Create Pull Request
if: env.needs_update == 'true'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-dash-and-version
title: "Update Dash Dependency and Sync Version"
base: main
title: "chore: update Dash dependency and sync version"
body: |
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`.
This pull request updates the `dash` dependency to the latest version and syncs the package version, aligning the minor and patch versions with `dash`.
commit-message: "chore: update Dash dependency and sync version"
reviewers: "thephez"
Loading