Skip to content

Commit

Permalink
ci: sort with dictionary mode for compatibility (open-telemetry#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdvalle authored and drewby committed Oct 1, 2024
1 parent c8b66f1 commit c032618
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloud
- area:cloudevents
- area:cloudfoundry
- area:cloud
- area:code
- area:container
- area:cpu
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/change_proposal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloud
- area:cloudevents
- area:cloudfoundry
- area:cloud
- area:code
- area:container
- area:cpu
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/new-conventions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloud
- area:cloudevents
- area:cloudfoundry
- area:cloud
- area:code
- area:container
- area:cpu
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/scripts/get-registry-areas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
# Get a list of the semantic conventions areas from the registry.

CUR_DIRECTORY=$(dirname "$0")
REPO_DIR="$( cd "$CUR_DIRECTORY/../../../" && pwd )"
REGISTRY_DIR="$( cd "$REPO_DIR/model/registry" && pwd )"

# Explicitly sort with `-d` (dictionary) so BSD and GNU work alike.
for entry in $(ls $REGISTRY_DIR | egrep '\.yaml$' | sort -d)
do
echo "$entry"
done

0 comments on commit c032618

Please sign in to comment.