Skip to content

feat: provide github token #5

feat: provide github token

feat: provide github token #5

Workflow file for this run

# .github/workflows/version.yml
name: Semantic Calendar Version
on:
push:
branches:
- main
- develop
jobs:
release:
runs-on: ubuntu-latest
permissions:
# write permission is required to create a github release
contents: write
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/[email protected]
- name: Use the version
run: |
echo ${{ steps.version.outputs.version }}
- name: Use the previous version
run: |
echo ${{ steps.version.outputs.previous-version }}
- name: Create release
id: create_release
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: ${{ steps.release_version.outputs.version }}
publish: true