Skip to content

Add datadog-ci-version input option #18

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

Conversation

juan-fernandez
Copy link
Contributor

Closes #13

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@juan-fernandez juan-fernandez marked this pull request as ready for review May 28, 2024 11:32
@juan-fernandez juan-fernandez requested a review from a team as a code owner May 28, 2024 11:32
SECOND_LATEST_VERSION=$(curl -s "https://api.github.com/repos/datadog/datadog-ci/releases" | jq '[.[] | {tag_name: .tag_name, published_at: .published_at}] | sort_by(.published_at) | reverse | .[:2] | .[1] | .tag_name')
CLEAN_TAG_NAME=${SECOND_LATEST_VERSION#v}
echo "CLEAN_TAG_NAME=$CLEAN_TAG_NAME" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not seem to be working, plus this works, so I'm removing it:

npx @datadog/datadog-ci@"v2.35.0"

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@juan-fernandez juan-fernandez merged commit a83979c into main May 28, 2024
6 checks passed
@juan-fernandez juan-fernandez deleted the juan-fernandez/add-option-to-set-specific-version branch May 28, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify version for the datadog-ci installation
2 participants