Skip to content

Commit 5c49f95

Browse files
authored
chore(ci): tweak script (#11289)
* chore(ci): tweak script * test * Update release.yml * Revert "test" This reverts commit e8c165a.
1 parent dbec9ec commit 5c49f95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,13 @@ jobs:
9393
- name: Peek
9494
run: pnpm peek
9595
if: ${{ github.repository == 'nextauthjs/next-auth' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
96+
- name: Get base commit SHA from main
97+
id: get_base_sha
98+
run: echo "BASE_SHA=$(git merge-base origin/main HEAD)" >> $GITHUB_ENV
9699
- name: Check for changes under /packages
97100
id: check-packages
98101
run: |
99-
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^packages/'; then
102+
if git diff --name-only ${{ env.BASE_SHA }}...HEAD | grep '^packages/'; then
100103
echo "PACKAGES_CHANGES=true" >> $GITHUB_ENV
101104
else
102105
echo "PACKAGES_CHANGES=false" >> $GITHUB_ENV

0 commit comments

Comments
 (0)