Skip to content

Merge pull request #34 from wemogy/main #33

Merge pull request #34 from wemogy/main

Merge pull request #34 from wemogy/main #33

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.CHECKOUT_TOKEN }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
# Determine Release Version
- name: Run
id: get-release-version
uses: ./
with:
create-tag: "true"
- name: Show the next version
run: |
echo "Version: ${{ steps.get-release-version.outputs.version }}"
echo "Version name: ${{ steps.get-release-version.outputs.version-name }}"
echo "Has changes: ${{ steps.get-release-version.outputs.has-changes }}"
# Create GitHub Release
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: steps.get-release-version.outputs.has-changes == 'true'
with:
tag_name: ${{ steps.get-release-version.outputs.version-name }}
name: Version ${{ steps.get-release-version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}