Skip to content

Commit 41d36be

Browse files
Fix for deprecated of set-output in GH actions (#183)
GitHub has deprecated set-output and will eventually make it unusable, so this is a preventative fix. See more info here: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent c4364b8 commit 41d36be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
if [ "${{ github.event_name }}" = "push" ]; then
5050
TAGS="${DOCKER_IMAGE}:latest"
5151
fi
52-
echo ::set-output name=version::${VERSION}
53-
echo ::set-output name=tags::${TAGS}
54-
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
52+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
53+
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
54+
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
5555
- name: Set up JDK 11
5656
uses: actions/setup-java@v2
5757
with:

0 commit comments

Comments
 (0)