https://github.com/digipost/set-revision
Github Action to set a REVISION environment variabel based on current branch
https://github.com/digipost/set-revision
Last synced: about 2 months ago
JSON representation
Github Action to set a REVISION environment variabel based on current branch
- Host: GitHub
- URL: https://github.com/digipost/set-revision
- Owner: digipost
- Created: 2022-11-17T08:30:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T06:39:27.000Z (about 1 year ago)
- Last Synced: 2025-01-29T05:37:58.982Z (4 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Set Revision javascript action
This action uses the github reference of the caller context,
and returns the desired Maven Revision property according to
our specification. This property is also
exported in the Github Environment as `REVISION`.
Our specification, in short, is as follows:
- Tags remain unchanged
- Non-tags are appended with a `-SNAPSHOT` suffix## Inputs
None
## Outputs
### `revision`
The appropriate `revision` value.
This value is also exported in the Github Environment as `REVISION`.## Example usage
```yaml
uses: digipost/[email protected]
```## Building this project
Make desired changes in `index.js` (and/or other files). Then run
```
ncc build index.js
```to generate the dist/index.js file
## Links
- [Great guide for creating JavaScript Actions](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action)
- [Vercel NCC on Github](https://github.com/vercel/ncc)