Skip to content

Commit

Permalink
chore: new token workflow for worker-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 18, 2024
1 parent f17e6c5 commit 063f11e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/worker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,18 @@ jobs:
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- run: |
- name: 'Set GitHub user'
run: |
APP_SLUG="${{ steps.app-token.outputs.app-slug || 'github-actions' }}"
USER_ID="${{ steps.get-user-id.outputs.user-id || 'github-actions' }}"
git config --global user.name "${APP_SLUG}[bot]"
git config --global user.email "${USER_ID}+${APP_SLUG}[bot]@users.noreply.github.com"
USER_ID="${{ steps.get-user-id.outputs.user-id || '' }}"
if [ -z "$USER_ID" ]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
else
git config --global user.name "${APP_SLUG}[bot]"
git config --global user.email "${USER_ID}+${APP_SLUG}[bot]@users.noreply.github.com"
fi
- name: Format manifest.json using Prettier
shell: bash
Expand Down

0 comments on commit 063f11e

Please sign in to comment.