Simplify release workflow configuration

This commit is contained in:
Konrad Pabjan
2024-10-22 09:28:52 -04:00
committed by GitHub
parent fc8ba308da
commit f4d851fab3
@@ -2,20 +2,15 @@ name: Release new action version
on: on:
release: release:
types: [released] types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true
env: env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} TAG_NAME: ${{ github.event.release.tag_name }}
permissions: permissions:
contents: write contents: write
jobs: jobs:
update_tag: update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes name: Update the major tag to include the ${{ github.event.release.tag_name }} changes
environment: environment:
name: releaseNewActionVersion name: releaseNewActionVersion
runs-on: ubuntu-latest runs-on: ubuntu-latest