8000 add release.yml for v1 (#635) · Ditto190/Github-setup-python@0cf603f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cf603f

Browse files
add release.yml for v1 (actions#635)
1 parent 0f07f7f commit 0cf603f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release new action version
2+
3+
on:
4+
release:
5+
types: [released]
6+
workflow_dispatch:
7+
inputs:
8+
TAG_NAME:
9+
description: 'Tag name that the major tag will point to'
10+
required: true
11+
12+
env:
13+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
update_tag:
19+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
20+
environment:
21+
name: releaseNewActionVersion
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Update the ${{ env.TAG_NAME }} tag
25+
uses: actions/publish-action@v0.2.2
26+
with:
27+
source-tag: ${{ env.TAG_NAME }}
28+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)
0