From 64d2c8705aa10aa475e971b877a7fe6ada69a1a2 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Tue, 12 Mar 2024 15:15:29 +0100 Subject: [PATCH] fix(entrypoint): use up-to-date set output command (#4) * fix(entrypoint): use up-to-date set output command See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * chore: bump version --------- Co-authored-by: Leigh Oliver --- README.md | 2 +- VERSION | 2 +- entrypoint.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55a49af..1acb91c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Action to commit a file or directory to another repo using a deploy key. * Add the private key to your source repo as a secret * Add this action to your workflow: ```yaml -uses: leigholiver/commit-with-deploy-key@v1.0.3 +uses: leigholiver/commit-with-deploy-key@v1.0.4 with: source: build_output destination_folder: dist diff --git a/VERSION b/VERSION index e946d6b..3e7bcf0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.0.3 +v1.0.4 diff --git a/entrypoint.sh b/entrypoint.sh index 486e2b9..93d8376 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,5 +48,5 @@ git commit -m "${INPUT_COMMIT_MESSAGE}" || echo GIT_SSH_COMMAND=$GIT_SSH git push -u origin $INPUT_DESTINATION_BRANCH # output the commit hash -echo "::set-output name=commit_hash::$(git rev-parse HEAD)" +echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT exit 0