Skip to content

Commit

Permalink
Added examples of how to check for tags, versions and releases. (#709)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Oct 7, 2021
1 parent 3b57cab commit f2a65f0
Showing 1 changed file with 20 additions and 0 deletions.
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.*)$'"
```

0 comments on commit f2a65f0

Please sign in to comment.