Skip to content

Commit c950ce3

Browse files
committed
ci: Replace set-output command with echo to GITHUB_OUTPUT
The `set-output` command was deprecated. The new way to set an output parameter for a step is to echo to the file stored in `$GITHUB_OUTPUT`
1 parent b9cf503 commit c950ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/nightly-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
id: check-dh-login
112112
run: |
113113
if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then
114-
echo "::set-output name=secrets_present::true"
114+
echo "secrets_present=true" >> $GITHUB_OUTPUT
115115
else
116116
echo "No Docker Hub login data found. Skipping Docker."
117117
fi
@@ -163,7 +163,7 @@ jobs:
163163
gbver=${gbver##*gitblit-}
164164
echo "Version detected: $gbver"
165165
echo "GITBLIT_VERSION=$gbver" >> "${GITHUB_ENV}"
166-
echo "::set-output name=gb-version::$gbver"
166+
echo "gb-version=$gbver" >> $GITHUB_OUTPUT
167167
168168
- name: Generate Dockerfile for snapshot image
169169
working-directory: ../gitblit-docker

0 commit comments

Comments
 (0)