Skip to content

Merge pull request #385 from Electrostatics/nathan/384 #183

Merge pull request #385 from Electrostatics/nathan/384

Merge pull request #385 from Electrostatics/nathan/384 #183

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: GetVersion
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- uses: actions/checkout@v2
with:
# This is necessary so that we have the tags.
fetch-depth: 0
- uses: mtkennerly/dunamai-action@v1
with:
env-var: MY_VERSION
args: --style semver
- run: echo $MY_VERSION