Skip to content

Commit

Permalink
Add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr committed Apr 9, 2022
1 parent 1e5f0bd commit 8217e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e

main() {
echo "" # see https://github.com/actions/toolkit/issues/168
echo ">> elgohr/Publish-Docker-Github-Action@master has been deprecated."
echo ">> Please use elgohr/Publish-Docker-Github-Action@v4 for a blast in speed and security."

if usesBoolean "${ACTIONS_STEP_DEBUG}"; then
echo "::add-mask::${INPUT_USERNAME}"
Expand Down
4 changes: 2 additions & 2 deletions test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ teardown() {

run /entrypoint.sh

expectStdOutIs ""
expectStdOutIs ">> elgohr/Publish-Docker-Github-Action@master has been deprecated.>> Please use elgohr/Publish-Docker-Github-Action@v4 for a blast in speed and security."

expectMockCalledIs "/usr/local/mock/docker login -u USERNAME --password-stdin
/usr/local/mock/docker build -t my/repository:latest .
Expand All @@ -638,7 +638,7 @@ teardown() {

run /entrypoint.sh

expectStdOutIs ""
expectStdOutIs ">> elgohr/Publish-Docker-Github-Action@master has been deprecated.>> Please use elgohr/Publish-Docker-Github-Action@v4 for a blast in speed and security."

expectMockCalledIs "/usr/local/mock/docker build -t my/repository:latest ."
}
Expand Down

0 comments on commit 8217e91

Please sign in to comment.