Skip to content

Commit 1c875ff

Browse files
committed
Get agent version from datadog-agent changelog instead of tag list
1 parent 64f2554 commit 1c875ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/nightly-serverless-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: |
3737
STAMP=$(date -u +%Y%m%d)
3838
SHORT_SHA=$(git -C datadog-agent rev-parse --short=8 HEAD)
39-
AGENT_VERSION=$(git -C datadog-agent tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
39+
AGENT_VERSION=$(grep -m 1 -E '^[0-9]+\.[0-9]+\.[0-9]+$' datadog-agent/CHANGELOG.rst)
4040
echo "stamp=${STAMP}" >> "$GITHUB_OUTPUT"
4141
echo "short_sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT"
4242
echo "version=nightly-${STAMP}-${SHORT_SHA}" >> "$GITHUB_OUTPUT"

.github/workflows/release-serverless-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
AGENT_VERSION="${{ github.event.inputs.agentVersion }}"
6060
if [ -z "$AGENT_VERSION" ]; then
61-
AGENT_VERSION=$(git -C datadog-agent tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
61+
AGENT_VERSION=$(grep -m 1 -E '^[0-9]+\.[0-9]+\.[0-9]+$' datadog-agent/CHANGELOG.rst)
6262
fi
6363
echo "agent_version=${AGENT_VERSION}" >> "$GITHUB_OUTPUT"
6464

0 commit comments

Comments
 (0)