Skip to content

Commit c8719ac

Browse files
authored
docs
1 parent 50454ff commit c8719ac

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
➕ Adds all files by default \
2424
👨 Uses `github.actor` as the default author \
2525
🤖 Uses <b>@github-actions\[bot\]</b> as the default committer \
26-
🔼 Pushes changes to the current branch or tag \
26+
🔼 Pushes changes to the current branch \
2727
🤩 Works great for the common use cases!
2828

2929
A convenience wrapper with sensible defaults so that you don't have to do
@@ -73,6 +73,8 @@ a premade action like [actions4git/setup-git] to configure the `user.name` and
7373
- run: git push origin other-branch:main --force
7474
```
7575

76+
🏷️ Automatic tag updating coming soon! Contributions welcome! ❤️
77+
7678
### Inputs
7779

7880
- **`path`:** The path to the repository root folder to perform the Git
@@ -134,13 +136,25 @@ a premade action like [actions4git/setup-git] to configure the `user.name` and
134136

135137
### Outputs
136138

137-
TODO!
139+
- **`committed`:** Whether or not anything was actually committed to the
140+
repository locally. This will be `true` if there were any changes and `false`
141+
if not.
142+
143+
- **`commit-sha`:** The SHA of the commit that was created. Will not be set if
144+
nothing was committed.
145+
146+
- **`pushed`:** Whether or not anything was actually pushed to the remote
147+
repository. This will be `true` if there were any changes that were pushed and
148+
`false` if not.
138149

139150
## Development
140151

141-
![Bun](https://img.shields.io/static/v1?style=for-the-badge&message=Bun&color=000000&logo=Bun&logoColor=FFFFFF&label=)
152+
![Node.js](https://img.shields.io/static/v1?style=for-the-badge&message=Node.js&color=339933&logo=Node.js&logoColor=FFFFFF&label=)
153+
154+
**How do I test my changes?**
142155

143-
TODO!
156+
Open a Draft Pull Request and some magic GitHub Actions will run to test the
157+
action.
144158

145159
<!-- prettier-ignore-start -->
146160
[actions4git/setup-git]: https://github.com/actions4git/setup-git

action.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,19 @@ inputs:
7979
default: false
8080

8181
outputs:
82-
committed: {}
83-
commit-sha: {}
84-
pushed: {}
82+
committed:
83+
description: >
84+
Whether or not anything was actually committed to the repository locally.
85+
This will be 'true' if there were any changes and 'false' if not.
86+
commit-sha:
87+
description: >
88+
The SHA of the commit that was created. Will not be set if nothing was
89+
committed.
90+
pushed:
91+
description: >
92+
Whether or not anything was actually pushed to the remote repository. This
93+
will be 'true' if there were any changes that were pushed and 'false' if
94+
not.
8595
8696
runs:
8797
using: node20

0 commit comments

Comments
 (0)