An open API service indexing awesome lists of open source software.

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

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 }}
```