diff --git a/actions/github-app-auth/action.yml b/actions/github-app-auth/action.yml index 7a0f1b7..5aaf22b 100644 --- a/actions/github-app-auth/action.yml +++ b/actions/github-app-auth/action.yml @@ -7,6 +7,10 @@ inputs: private-key: description: Github App Private Key required: true +outputs: + token: + description: Github app auth token + value: ${{ steps.app-token.outputs.token }} runs: using: composite steps: @@ -17,17 +21,3 @@ runs: client-id: ${{ inputs.client-id }} private-key: ${{ inputs.private-key }} permission-contents: write - - name: Get GitHub App User ID - id: get-user-id - shell: bash - 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 Git environment - shell: bash - run: | - git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' - git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com' - gh auth setup-git - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }}