Skip to content

Commit b30ada2

Browse files
chore: update stable tag conditionally (argoproj#2480)
* chore: update stable tag conditionally Signed-off-by: Justin Marquis <[email protected]> * updated requested changes Signed-off-by: Justin Marquis <[email protected]> Signed-off-by: Justin Marquis <[email protected]>
1 parent f5fb4c4 commit b30ada2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
tag:
77
description: Git tag to build release from
88
required: true
9+
update_stable_tag:
10+
description: 'Update stable tag'
11+
required: true
12+
type: boolean
13+
default: 'false'
914
permissions:
1015
contents: read
1116

@@ -196,7 +201,8 @@ jobs:
196201
- name: update stable tag for docs
197202
run: |
198203
git tag -f stable ${{ github.event.inputs.tag }}
199-
git push -f origin stable
204+
git push -f origin stable
205+
if: ${{ inputs.update_stable_tag }}
200206

201207
- name: Draft release
202208
uses: softprops/action-gh-release@v1

docs/releasing.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@
55
1. Visit the [Release GitHub Action](https://github.com/argoproj/argo-rollouts/actions/workflows/release.yaml)
66
and enter the tag.
77

8+
1. To automatically update the stable tag, select `Update stable tag`. (false by default)
9+
810
[![GitHub Release Action](release-action.png)](release-action.png)
911

1012
1. When the action completes, visit the generated draft [Github releases](https://github.com/argoproj/argo-rollouts/releases) and enter the details about the release:
1113
* Getting started (copy from previous release and new version)
1214
* Changelog
1315

14-
1. Update `stable` tag:
15-
16-
```bash
17-
git tag stable --force && git push $REPO stable --force
18-
```
19-
2016
1. Update Brew formula:
2117

2218
* Fork the repo https://github.com/argoproj/homebrew-tap

0 commit comments

Comments
 (0)