Skip to content

Commit

Permalink
Merge pull request #550 from DataDog/jf/deprecation
Browse files Browse the repository at this point in the history
Add GitHub action env variable deprecation warning
  • Loading branch information
jasonforal authored Nov 6, 2024
2 parents 5a775d9 + 16d867a commit b5bdd4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions misc/github-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ if [ -z "$DD_APP_KEY" ]; then
exit 1
fi

if [ -n "$DD_ENV" ]; then
echo "::warning title=Deprecated environment variable::DD_ENV has been set, but it is no longer functional. This warning will be removed in a future update."
fi

if [ -n "$DD_SERVICE" ]; then
echo "::warning title=Deprecated environment variable::DD_SERVICE has been set, but it is no longer functional. This warning will be removed in a future update."
fi

if [ -z "$CPU_COUNT" ]; then
# the default CPU count is 2
CPU_COUNT=2
Expand Down

0 comments on commit b5bdd4b

Please sign in to comment.