Skip to content

Commit 5ecb3c7

Browse files
committed
Add release workflows
1 parent 5c378e1 commit 5ecb3c7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish Immutable Action Version
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
11+
packages: write
12+
steps:
13+
- name: Checking out
14+
uses: actions/checkout@v4
15+
- name: Publish
16+
id: publish
17+
uses: actions/[email protected]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release new action version
2+
on:
3+
release:
4+
types: [ released ]
5+
workflow_dispatch:
6+
inputs:
7+
TAG_NAME:
8+
description: Tag name that the major tag will point to
9+
required: true
10+
env:
11+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
12+
permissions:
13+
contents: write
14+
jobs:
15+
update_tag:
16+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
17+
environment:
18+
name: releaseNewActionVersion
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Update the ${{ env.TAG_NAME }} tag
22+
id: update-major-tag
23+
uses: actions/[email protected]
24+
with:
25+
source-tag: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)