Skip to content

Commit 9c76bbb

Browse files
authored
Merge pull request #47 from actions/release-with-consistency
Update release process to be more consistent
2 parents 3887256 + 1949194 commit 9c76bbb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release-new-action-version.yml renamed to .github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
name: Release new action version
1+
name: Release
22
on:
33
release:
4-
types: [edited]
4+
types: [released]
55
workflow_dispatch:
66
inputs:
77
TAG_NAME:
8-
description: 'Tag name that the major tag will point to'
8+
description: "Tag name that the major tag will point to"
99
required: true
1010

1111
env:
1212
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
1313
REGISTRY: ghcr.io
1414
IMAGE_NAME: ${{ github.repository }}
1515

16+
permissions:
17+
contents: write
18+
1619
jobs:
1720
verify_release:
1821
runs-on: ubuntu-latest
@@ -37,11 +40,13 @@ jobs:
3740
fi
3841
- name: Verify image published
3942
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
43+
4044
update_tag:
4145
needs: verify_release
4246
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
4347
environment:
44-
name: releaseNewActionVersion
48+
# Note: this environment is protected
49+
name: Release
4550
runs-on: ubuntu-latest
4651
outputs:
4752
major_tag: ${{ steps.update-major-tag.outputs.major-tag }}

0 commit comments

Comments
 (0)