This action generates a version code based on the commit count of your current branch
Required The to be increased on decreased for the final version code. Default "0"
.
The version code generated.
name: Version code generator
When using action checkout please specify the input parameter fetch-depth: 0 in order to retrieve all commits
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: Generate new version code
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get version code
id: version_code
uses: lucasfe/version_code_generator@v1.0.0
with:
offset: '-3'