Skip to content

Added examples of how to check for tags, versions and releases. #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- [Add a New Component](#add-a-new-component)
- [Create or Update Release Labels](#create-or-update-release-labels)
- [Create a Release Issue](#create-a-release-issue)
- [Check for Release Tags](#check-for-release-tags)
- [Check for Versions and Releases](#check-for-versions-and-releases)

## Managing OpenSearch Components

Expand Down Expand Up @@ -56,3 +58,21 @@ We create release issues in all component repos that link back to a parent relea
1. Locate the parent issue, e.g. [opensearch-build#567](https://github.com/opensearch-project/opensearch-build/issues/567) for version 1.2.
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).
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"`.

### Check for Release Tags

Check whether a tag for version `1.1.0` exists.

```
meta exec "git ls-remote | grep -E 'refs/tags/1.1.0$'"
```

The command will fail and show in red for every repository without a tag.

### Check for Versions and Releases

Check whether a version or a release exists.

```
meta exec "gh release list | grep -E '(1.1.0.*)$'"
```