Skip to content

Commit 85b8999

Browse files
authored
Update release process to be more consistent
1 parent 3887256 commit 85b8999

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
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
1922
steps:
2023
- name: Checkout repository
21-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2225
- name: Grep action.yaml content
2326
id: grep-image-content
2427
run: |
@@ -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)