Skip to content

Commit 87c371c

Browse files
authored
Make release workflow manually triggered (opensearch-project#470)
* Make release workflow manually triggered Signed-off-by: xil <fridalu66@gmail.com> * Update changelog for PR opensearch-project#470 Signed-off-by: xil <fridalu66@gmail.com> * Remove ref input from release workflow Signed-off-by: xil <fridalu66@gmail.com> --------- Signed-off-by: xil <fridalu66@gmail.com>
1 parent 829e797 commit 87c371c

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
name: Release Workflow
22

3-
# Push events to every tag not containing "/"
4-
#
5-
# Create artifacts for Github release and publish to public repositories
3+
# Triggered manually to create release artifacts:
64
# - opensearch-protobufs-java.tar.gz (Java/Maven artifacts)
75
# - opensearch-protobufs-{version}.zip (Raw proto files)
86
# - opensearch_protobufs-{version}-py3-none-any.whl (Python/PyPI artifacts)
97

108
on:
11-
push:
12-
tags:
13-
- "*"
9+
workflow_dispatch:
10+
inputs:
11+
release_tag:
12+
description: 'Release tag to create (for example, 1.6.0)'
13+
required: true
14+
type: string
1415

1516
jobs:
1617
release:
1718
environment: release-approval
1819
runs-on: ubuntu-latest
1920
permissions: write-all
21+
env:
22+
RELEASE_TAG: ${{ inputs.release_tag }}
2023
steps:
2124
- name: Checkout
2225
uses: actions/checkout@v6
@@ -54,6 +57,7 @@ jobs:
5457
- name: Release on Github
5558
uses: softprops/action-gh-release@v2
5659
with:
60+
tag_name: ${{ env.RELEASE_TAG }}
5761
draft: true
5862
generate_release_notes: true
5963
files: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010
- Add PIT RPCs to `SearchService` ([#469](https://github.com/opensearch-project/opensearch-protobufs/pull/469)).
1111

1212
### Changed
13+
- Make the release workflow manually triggered ([#470](https://github.com/opensearch-project/opensearch-protobufs/pull/470)).
1314

1415
### Removed
1516

0 commit comments

Comments
 (0)