Skip to content

Commit ed034ea

Browse files
authored
Merge pull request #53 from actions/consistent-release-workflow
Make the major version release workflow consistent with other Actions
2 parents a87638c + 8f9a38d commit ed034ea

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
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 }}
13+
1314
permissions:
1415
contents: write
1516

1617
jobs:
1718
update_tag:
1819
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
19-
environment:
20-
name: releaseNewActionVersion
2120
runs-on: ubuntu-latest
21+
environment:
22+
# Note: this environment is protected
23+
name: Release
2224
steps:
23-
- name: Update the ${{ env.TAG_NAME }} tag
24-
id: update-major-tag
25-
uses: actions/publish-action@v0.1.0
26-
with:
27-
source-tag: ${{ env.TAG_NAME }}
28-
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
25+
- name: Update the ${{ env.TAG_NAME }} tag
26+
id: update-major-tag
27+
uses: actions/publish-action@v0.1.0
28+
with:
29+
source-tag: ${{ env.TAG_NAME }}
30+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)