From 51755f275502051a1bd44d1dd10bcb0cc86736c9 Mon Sep 17 00:00:00 2001 From: keylogic1 <119584546+keylogic1@users.noreply.github.com> Date: Fri, 3 Feb 2023 15:21:59 +0100 Subject: [PATCH] Update to use new set-output standard --- README.md | 16 ++++++++-------- entrypoint.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4ced194..bc5ce33 100644 --- a/README.md +++ b/README.md @@ -4,26 +4,26 @@ Retrieve git sha from a remote repository ## Usage ### Public repository ``` -uses: mego22/actions-git-sha@main +uses: keylogic1/actions-git-sha@main with: - repo: "https://github.com/mego22/dotfiles.git" + repo: "https://github.com/keylogic1/dotfiles.git" ``` ### Private repository ``` -uses: mego22/actions-git-sha@main +uses: keylogic1/actions-git-sha@main with: username: "${{ github.actor }}" password: "${{ secrets.TOKEN }}" - repo: "https://github.com/mego22/git-sha-test.git" + repo: "https://github.com/keylogic1/git-sha-test.git" ``` ### Non-default branch ``` -uses: mego22/actions-git-sha@main +uses: keylogic1/actions-git-sha@main with: - repo: "https://github.com/mego22/dotfiles.git" + repo: "https://github.com/keylogic1/dotfiles.git" branch: "git-sha-test" ``` @@ -31,9 +31,9 @@ with: ``` - name: Retrieve sha from a repo id: remote_sha - uses: mego22/actions-git-sha@main + uses: keylogic1/actions-git-sha@main with: - repo: "https://github.com/mego22/dotfiles.git" + repo: "https://github.com/keylogic1/dotfiles.git" - name: Print sha run: echo "The sha is ${{ steps.remote_sha.outputs.sha }}" diff --git a/entrypoint.sh b/entrypoint.sh index e64dda9..1269bda 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,4 +21,4 @@ git config --global credential.helper store SHA=`git ls-remote "${GIT_REPO}" "${GIT_BRANCH}" | awk '{print $1}'` -echo "::set-output name=sha::$SHA" +echo "{sha}={$SHA}" >> $GITHUB_OUTPUT