https://github.com/thiagodnf/version-decider
A GitHub action for deciding if new a version should be released
https://github.com/thiagodnf/version-decider
continuous-integration github-actions
Last synced: about 1 month ago
JSON representation
A GitHub action for deciding if new a version should be released
- Host: GitHub
- URL: https://github.com/thiagodnf/version-decider
- Owner: thiagodnf
- License: mit
- Created: 2023-07-02T22:13:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T02:08:55.000Z (almost 2 years ago)
- Last Synced: 2026-03-20T05:56:15.264Z (3 months ago)
- Topics: continuous-integration, github-actions
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/version-decider
- Size: 1.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Version Decider
A GitHub action for deciding if new a version should be released
[](https://github.com/thiagodnf/version-decider/actions/workflows/build.yml)
[](https://github.com/thiagodnf/version-decider/releases/latest)
[](https://github.com/thiagodnf/version-decider/graphs/contributors)
[](https://github.com/thiagodnf/version-decider)
[](https://opensource.org/licenses/mit-license.php)
[](https://github.com/ellerbrock/open-source-badges/)
## Usage
You can now consume the action by referencing the available version.
```yaml
- id: version-decider
name: Version Decider
uses: thiagodnf/version-decider@v1.0.7
with:
file: ./package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Now you can use the output to run the next actions such as:
```yaml
- name: Creating a new release on Github
uses: softprops/action-gh-release@v1
if: steps.version-decider.outputs.new
with:
name: v${{ steps.version-decider.outputs.version }}
tag_name: v${{ steps.version-decider.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
## Input
### `file`
**Required** The configuration file
## Outputs
### `version`
Current Version
### `release`
Current Release Version
### `new`
True if a new version should be released
## Questions or Suggestions
Feel free to access the discussions tab as you need
## Contribute
Contributions to this project are very welcome! We can't do this alone! Feel free to fork this project, work on it and then make a pull request.
## License
Licensed under the [MIT license](LICENSE).
## Donate
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, reach out to me if you want to do it.
Thanks!
❤️