Merge pull request #47 from actions/release-with-consistency

Update release process to be more consistent
This commit is contained in:
James M. Greene
2022-08-19 13:22:19 -05:00
committed by GitHub
@@ -1,11 +1,11 @@
name: Release new action version name: Release
on: on:
release: release:
types: [edited] types: [released]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
TAG_NAME: TAG_NAME:
description: 'Tag name that the major tag will point to' description: "Tag name that the major tag will point to"
required: true required: true
env: env:
@@ -13,6 +13,9 @@ env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
permissions:
contents: write
jobs: jobs:
verify_release: verify_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -37,11 +40,13 @@ jobs:
fi fi
- name: Verify image published - name: Verify image published
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }} run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
update_tag: update_tag:
needs: verify_release needs: verify_release
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.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment: environment:
name: releaseNewActionVersion # Note: this environment is protected
name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
major_tag: ${{ steps.update-major-tag.outputs.major-tag }} major_tag: ${{ steps.update-major-tag.outputs.major-tag }}