Skip to content

Commit 9eb81b4

Browse files
committed
ship it :shipit:
0 parents  commit 9eb81b4

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org/>

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# :octocat: Setup GitHub Actions Bot
2+
3+
This Action configures `git` so that when you make commits in CI, they will be authored by [`github-actions[bot]`](https://github.com/features/actions) ([github-actions[bot]@users.noreply.github.com](mailto:github-actions[bot]@users.noreply.github.com))
4+
5+
## Usage
6+
7+
Here's a basic example of how to use this action in your workflow:
8+
9+
```yaml
10+
name: Example Workflow
11+
12+
on: [push]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Configure Git
21+
uses: cli-stuff/setup-github-actions-bot
22+
23+
- name: Commit changes
24+
run: |
25+
echo "New content" >> new_file.txt
26+
git commit -am "Add new file"
27+
```
28+
29+
## License
30+
31+
This project is licensed under Unlicense - see the [LICENSE](LICENSE) file for details.

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Configure GitHub Actions Bot
2+
description: Configures Git user.name and user.email for GitHub Actions.
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Configure Git User
8+
shell: bash
9+
run: |
10+
git config --global user.name 'github-actions[bot]'
11+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)