diff --git a/README.md b/README.md index f97ab07..6859480 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,18 @@ jobs: ## Outputs None + + +## Troubleshooting + +### A ruleset is blocking the release + +You have 2 options: + +1. Create a Github App (**recommended**) +2. Create a Personal Access Token (PAT) + +A PAT is associated to your personal account, while the Github App is like a bot. +Whichever you choose, you'll have to add it to the exemption list in the ruleset. + +For the Github App, you can find the instructions to create one in [Registering a Github App](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app) and a detail tutorial in [this discussion](https://github.com/orgs/community/discussions/25305#discussioncomment-8256560) diff --git a/action.yaml b/action.yaml index a6d6828..9a57b9f 100644 --- a/action.yaml +++ b/action.yaml @@ -19,6 +19,14 @@ inputs: description: "Set git config" required: false default: "true" + git-user-name: + description: "Git user name" + required: false + default: "github-actions[bot]" + git-user-email: + description: "Git user email" + required: false + default: "41898282+github-actions[bot]@users.noreply.github.com" branding: icon: "anchor" @@ -30,8 +38,8 @@ runs: - if: ${{ inputs.set-git-config == 'true' }} shell: bash run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "${{ inputs.git-user-name }}" + git config --global user.email "${{ inputs.git-user-email }}" - id: set-vars uses: actions/github-script@v8 env: