https://github.com/actoaps/version-spell
The magic spell of software versions at Acto ApS
https://github.com/actoaps/version-spell
actions build-automation build-id
Last synced: 5 months ago
JSON representation
The magic spell of software versions at Acto ApS
- Host: GitHub
- URL: https://github.com/actoaps/version-spell
- Owner: actoaps
- License: mit
- Created: 2019-12-19T12:34:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-11T15:16:35.000Z (over 3 years ago)
- Last Synced: 2025-10-18T12:54:04.825Z (8 months ago)
- Topics: actions, build-automation, build-id
- Language: JavaScript
- Homepage:
- Size: 1.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Version spell
This action creates a version for your software, based on the checked out branch and amount of commits.
## Important note
In order for this action to work, you need to checkout your code with a fetch-depth of 0. This fetches all history, which we need in order to count the commits.
## Outputs
### `version`
The version generated for your checked out commit.
## Example workflow
```yaml
on: [push]
jobs:
test_action:
runs-on: ubuntu-latest
name: Test action
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Generate Build ID
id: spell
uses: actoaps/version-spell@v5
- name: Use Build ID
run: echo ${{ steps.spell.outputs.version }}
```