Skip to content

release

release #310

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
default: 'latest'
required: false
schedule:
- cron: "0 4 * * *"
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: runner
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: actions
repo: runner
excludes: prerelease, draft
- name: Tag name
id: tag
run: |
echo "Upstream release = actions/runner: ${{ steps.runner.outputs.release }}"
if [ "${{ github.event.inputs.version || 'latest' }}" = "latest" ]; then
export TAG="${{ steps.runner.outputs.release }}"
else
export TAG="${{ github.event.inputs.version }}"
fi
echo "Generating tag: $TAG"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
- uses: mukunku/[email protected]
id: checkTag
with:
tag: ${{ steps.tag.outputs.tag }}
- name: Create Release
if: ${{ steps.checkTag.outputs.exists == 'false' }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
automatic_release_tag: "${{ steps.tag.outputs.tag }}"
prerelease: false
title: "${{ steps.tag.outputs.tag }}"