Skip to content

Commit 8d00517

Browse files
releases: moving automatically major to last release (#2)
2 parents 48c7a25 + 852cc8e commit 8d00517

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
permissions:
19+
contents: write
20+
21+
jobs:
22+
update_tag:
23+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
24+
runs-on: ubuntu-latest
25+
environment: deploy
26+
steps:
27+
- name: Update the ${{ env.TAG_NAME }} tag
28+
uses: actions/publish-action@v0.2.2
29+
with:
30+
source-tag: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)