Skip to content

Commit

Permalink
Change: Use github-actions user as default for set-github-user
Browse files Browse the repository at this point in the history
Make all inputs optional by just using the github-actions user as
default for the git credentials.
  • Loading branch information
bjoernricks committed Jul 6, 2023
1 parent 22a1ae8 commit 45a17a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions set-github-user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

|Input Variable|Description| |
|--------------|-----------|-|
| user | GitHub user name on behalf of whom the actions will be executed. | Required |
| mail | Mail address for the given GitHub user. | Required |
| user | GitHub user name on behalf of whom the actions will be executed. | Optional (default: `github-actions`) |
| mail | Mail address for the given GitHub user. | Optional (default: `github-actions@github.com`) |
| token | The GitHub user's token (PAT) | Optional (default: `${{ github.token }}`) |
| repository | GitHub repository to use | Optional (default: `${{ github.repository }}`) |
12 changes: 6 additions & 6 deletions set-github-user/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ description: |

inputs:
user:
description: "GitHub user name on behalf of whom the actions will be executed."
required: true
description: "GitHub user name on behalf of whom the actions will be executed. Default is 'github-actions'."
default: github-actions
mail:
description: "Mail address for the given GitHub user."
required: true
description: "Mail address for the given GitHub user. Default is 'github-actions@github.com'."
default: github-actions@github.com
token:
description: "The GitHub user's token (PAT)"
description: "The GitHub user's token (PAT). Default is github.token."
default: ${{ github.token }}
repository:
description: "GitHub repository to use"
description: "GitHub repository to use. Default is github.repository."
default: ${{ github.repository }}

runs:
Expand Down

0 comments on commit 45a17a4

Please sign in to comment.