Skip to content

feat: run on branches main and develop #1

feat: run on branches main and develop

feat: run on branches main and develop #1

Workflow file for this run

# .github/workflows/version.yml
name: Semantic Calendar Version
on:
push:
branches:
- main
- develop
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: Semantic Calendar Version
id: version
uses: lukashornych/semantic-calendar-version@1
- name: Use the version
run: |
echo ${{ steps.version.outputs.version }}
- name: Use the previous version
run: |
echo ${{ steps.version.outputs.previous-version }}