Skip to content

Commit 4359dde

Browse files
committed
checking if reset-author works
1 parent 75f6f8d commit 4359dde

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deploy-ecosystem.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ jobs:
137137
- name: Install Vercel CLI
138138
run: npm install --global vercel@latest
139139

140-
- name: Configure Git for Vercel
141-
working-directory: ${{ matrix.project.path }}
142-
run: |
143-
git config user.name "github-actions[bot]"
144-
git config user.email "support@resilientdb.com"
145-
146140
- name: Pull Vercel Environment Information
147141
working-directory: ${{ matrix.project.path }}
148142
env:
@@ -158,6 +152,17 @@ jobs:
158152
159153
vercel pull --yes --environment=production --token=$VERCEL_TOKEN || echo "Could not pull Vercel config, continuing..."
160154
155+
- name: Set deploy commit author
156+
working-directory: ${{ matrix.project.path }}
157+
run: |
158+
# Configure git user
159+
git config user.name "github-actions[bot]"
160+
git config user.email "support@resilientdb.com"
161+
162+
# Create an empty commit with the correct author to override previous commit author
163+
# This helps Vercel identify the correct author for team access
164+
git commit --allow-empty -m "chore: update commit author for Vercel deployment" --reset-author || echo "No changes to commit"
165+
161166
- name: Deploy to Vercel
162167
working-directory: ${{ matrix.project.path }}
163168
env:

0 commit comments

Comments
 (0)