Skip to content

Commit

Permalink
Check out tag instead of branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsillydog committed Feb 5, 2025
1 parent 191e0cc commit 4ae507d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/retrieve-available-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ if [ $# -ne 1 ]; then
fi

VERSION=$1
BRANCH="release/$VERSION"
TAG="tags/$VERSION"
OUTPUT_DIR="local/available-components/yaml"
TEMP_DIR=$(mktemp -d 2>/dev/null || mktemp -d -t 'tmpdir') # MacOS compatible temp dir creation

# Create output directory if it doesn't exist
mkdir -p "$OUTPUT_DIR"

git checkout $BRANCH
git checkout $TAG

touch $OUTPUT_DIR/$VERSION.yaml

Expand Down Expand Up @@ -173,4 +173,3 @@ cat go.mod | grep -E ' (go.opentelemetry.io/collector|(github.com/(open-telemetr
}' >> "$OUTPUT_DIR/$VERSION.yaml"

git co main
git br -d $BRANCH

0 comments on commit 4ae507d

Please sign in to comment.