Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit f1dcf02

Browse files
authored
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.
1 parent 0461d8e commit f1dcf02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545

4646
- name: Get last commit author
4747
id: get_author
48-
run: echo "::set-output name=author::$(git log -1 --pretty=format:'%an <%ae> sha1={%H}')"
48+
run: >
49+
echo "author=$(git log -1 --pretty=format:'%an <%ae>, commit URL: ${{ github.server_url }}/${{ github.repository }}/commit/%H')" >> $GITHUB_OUTPUT
4950
5051
- name: License Header Verification
5152
working-directory: ci/it

0 commit comments

Comments
 (0)