From f1dcf029d4f38684fdc9f33c216f86b725db6733 Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Thu, 24 Oct 2024 15:09:19 +0200 Subject: [PATCH] Fix usage of deprecated `set-output`, give nicer URL to commit (#916) `set-output` is deprecated (https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) and the job always printed annoying warning because of that. Fix that to use `$GITHUB_OUTPUT` instead. Additionally, instead of printing just a hash of the commit, print a (clickable) URL to the commit. --- .github/workflows/integration-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index aea6e35ce..1e7635ad1 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -45,7 +45,8 @@ jobs: - name: Get last commit author id: get_author - run: echo "::set-output name=author::$(git log -1 --pretty=format:'%an <%ae> sha1={%H}')" + run: > + echo "author=$(git log -1 --pretty=format:'%an <%ae>, commit URL: ${{ github.server_url }}/${{ github.repository }}/commit/%H')" >> $GITHUB_OUTPUT - name: License Header Verification working-directory: ci/it