From 616c99ffaec0248cda246589aff339aebf933a64 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 18 Dec 2024 16:51:53 +0900 Subject: [PATCH] chore: new token workflow for worker-deploy.yml --- .github/workflows/worker-deploy.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/worker-deploy.yml b/.github/workflows/worker-deploy.yml index 35919af..f80837e 100644 --- a/.github/workflows/worker-deploy.yml +++ b/.github/workflows/worker-deploy.yml @@ -87,25 +87,6 @@ jobs: app-id: ${{ env.APP_ID }} private-key: ${{ env.APP_PRIVATE_KEY }} - - name: Get GitHub App User ID - id: get-user-id - run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - - - name: "Set GitHub user" - run: | - APP_SLUG="${{ steps.app-token.outputs.app-slug || 'github-actions' }}" - 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 run: | @@ -119,7 +100,7 @@ jobs: with: files: | manifest.json - commit-message: "chore: update manifest.json url" + commit-message: "chore: [skip ci] update manifest.json url" ref: ${{ github.ref }} - name: Write Deployment URL to Summary