From acc2f7f7a6db0a33365bd8fbf60b5ab0f4d4224c Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 29 Oct 2022 14:40:16 -0400 Subject: [PATCH] Use `$GITHUB_OUTPUT` instead of `::set-output` The `::set-output` command has been deprecated and is scheduled for removal on Jun 1, 2023 [1]. The recommended way to set output parameters today is by writing them to `$GITHUB_OUTPUT` file [2]. [1] https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ [2] https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter Resolves: #6 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index dbd3ead98..a6b466428 100644 --- a/action.yml +++ b/action.yml @@ -79,6 +79,6 @@ runs: - name: Expose connection URI run: | CONNECTION_URI="postgresql://${{ inputs.username }}:${{ inputs.password }}@localhost:${{inputs.port}}/${{ inputs.database }}" - echo ::set-output name=value::$CONNECTION_URI + echo "value=$CONNECTION_URI" >> $GITHUB_OUTPUT shell: bash id: connection-uri