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
11 changes: 4 additions & 7 deletions .github/workflows/sync-rush-versions.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Sync Rush.json Version
on:
pull_request_target:
pull_request:
Comment thread
nev21 marked this conversation as resolved.
types: [opened, synchronize]
paths:
- "**/package.json"
Expand All @@ -20,8 +20,6 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 2 # Fetch current commit + previous commit
- name: Detect Rush bump
id: detect
Expand All @@ -44,8 +42,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}

- name: Setup Node
uses: actions/setup-node@v6
Expand All @@ -71,8 +68,8 @@ jobs:

- name: Commit changes
run: |
git config --global user.name "dependabot[bot]"
git config --global user.email "49699333+dependabot[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Add files that exist
if [ -f rush.json ]; then git add rush.json; fi
if [ -f common-versions.json ]; then git add common-versions.json; fi
Expand Down