Skip to content

Commit 118658a

Browse files
Merge pull request #1 from outpost-os/add-auto-release
ci: add auto-release of major-only vX version
2 parents a8f741d + c4e5d10 commit 118658a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Release new reusable workflows version
6+
7+
on:
8+
release:
9+
types: [released]
10+
workflow_dispatch:
11+
inputs:
12+
TAG_NAME:
13+
description: 'Tag name that the major tag will point to'
14+
required: true
15+
16+
env:
17+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
18+
19+
jobs:
20+
update_tag:
21+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
22+
runs-on: ubuntu-latest
23+
environment: deploy
24+
permissions:
25+
contents: write
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Update the ${{ env.TAG_NAME }} tag
29+
id: update-major-tag
30+
uses: actions/[email protected]
31+
with:
32+
source-tag: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)