mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-10 03:45:52 +00:00
chore: markdown-table-formatter and formatting
This commit is contained in:
@@ -8,19 +8,19 @@ Sets Git configuration for actions.
|
||||
|
||||
### Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| ---------- | ----------------------------------- | -------- | --------------------------- |
|
||||
| `token` | <p>GitHub token.</p> | `false` | `${{ github.token }}` |
|
||||
| `username` | <p>GitHub username for commits.</p> | `false` | `github-actions` |
|
||||
| `email` | <p>GitHub email for commits.</p> | `false` | `github-actions@github.com` |
|
||||
| name | description | required | default |
|
||||
|--------------|----------------------------------------|----------|-----------------------------|
|
||||
| `token` | <p>GitHub token.</p> | `false` | `${{ github.token }}` |
|
||||
| `username` | <p>GitHub username for commits.</p> | `false` | `github-actions` |
|
||||
| `email` | <p>GitHub email for commits.</p> | `false` | `github-actions@github.com` |
|
||||
|
||||
### Outputs
|
||||
|
||||
| name | description |
|
||||
| ---------- | ----------------------------------- |
|
||||
| `token` | <p>GitHub token.</p> |
|
||||
| `username` | <p>GitHub username for commits.</p> |
|
||||
| `email` | <p>GitHub email for commits.</p> |
|
||||
| name | description |
|
||||
|--------------|----------------------------------------|
|
||||
| `token` | <p>GitHub token.</p> |
|
||||
| `username` | <p>GitHub username for commits.</p> |
|
||||
| `email` | <p>GitHub email for commits.</p> |
|
||||
|
||||
### Runs
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ runs:
|
||||
steps:
|
||||
- name: Check for FIXIMUS_TOKEN
|
||||
id: bot
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -n "${{ secrets.FIXIMUS_TOKEN }}" ]; then
|
||||
echo "token=${{ secrets.FIXIMUS_TOKEN }}" >> $GITHUB_OUTPUT
|
||||
@@ -46,9 +47,9 @@ runs:
|
||||
echo "username=${{ inputs.username }}" >> $GITHUB_OUTPUT
|
||||
echo "email=${{ inputs.email }}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Configure Git
|
||||
shell: bash
|
||||
run: |
|
||||
# Function to clean up Git config
|
||||
cleanup_git_config() {
|
||||
@@ -72,4 +73,3 @@ runs:
|
||||
'git@github.com:'
|
||||
git config --local user.name "${{ steps.bot.outputs.username }}"
|
||||
git config --local user.email "${{ steps.bot.outputs.email }}"
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user