Skip to content

Commit f2a65f0

Browse files
authored
Added examples of how to check for tags, versions and releases. (#709)
Signed-off-by: dblock <[email protected]>
1 parent 3b57cab commit f2a65f0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

meta/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- [Add a New Component](#add-a-new-component)
77
- [Create or Update Release Labels](#create-or-update-release-labels)
88
- [Create a Release Issue](#create-a-release-issue)
9+
- [Check for Release Tags](#check-for-release-tags)
10+
- [Check for Versions and Releases](#check-for-versions-and-releases)
911

1012
## Managing OpenSearch Components
1113

@@ -56,3 +58,21 @@ We create release issues in all component repos that link back to a parent relea
5658
1. Locate the parent issue, e.g. [opensearch-build#567](https://github.com/opensearch-project/opensearch-build/issues/567) for version 1.2.
5759
2. Clone the last template in [templates/releases/](templates/releases), and update version numbers and links, e.g. [release-1.2.0.md](templates/releases/release-1.2.0.md).
5860
3. From [components](components), run `meta exec "gh issue create --label v1.2.0 --title 'Release version 1.2' --body-file ../../templates/releases/release-1.2.0.md"`.
61+
62+
### Check for Release Tags
63+
64+
Check whether a tag for version `1.1.0` exists.
65+
66+
```
67+
meta exec "git ls-remote | grep -E 'refs/tags/1.1.0$'"
68+
```
69+
70+
The command will fail and show in red for every repository without a tag.
71+
72+
### Check for Versions and Releases
73+
74+
Check whether a version or a release exists.
75+
76+
```
77+
meta exec "gh release list | grep -E '(1.1.0.*)$'"
78+
```

0 commit comments

Comments
 (0)