Skip to content

Commit 28cb636

Browse files
authored
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#1659)
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `set-output` to `$GITHUB_OUTPUT` Instructions for envvar usage from GitHub docs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
1 parent 8435732 commit 28cb636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-Dockerfiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
git add "**/*Dockerfile"
119119
git commit -m "chore: ASP.NET Core version update in Dockerfiles"
120120
git push origin $branch
121-
echo "::set-output name=BRANCH::$branch"
121+
echo "BRANCH=$branch" >> $GITHUB_OUTPUT
122122
123123
# Create a Pull Request from the pushed branch
124124
- name: Pull Request

0 commit comments

Comments
 (0)