Address `set-output` deprecation
chore: Replace deprecated set-output in GH actions
@@ -35,8 +35,8 @@ jobs:
echo "Version is $version, is_lts: $is_lts"
- echo "::set-output name=is-lts::${is_lts}"
- echo "::set-output name=project-version::$version"
+ echo "is-lts=${is_lts}" >> $GITHUB_OUTPUT
+ echo "project-version=$version" >> $GITHUB_OUTPUT
war:
permissions:
contents: write # to upload release asset (actions/upload-release-asset)
@@ -51,7 +51,7 @@ jobs:
PROJECT_VERSION=${{ needs.determine-version.outputs.project-version }}
IS_LTS=${{ needs.determine-version.outputs.is-lts }}
echo $PROJECT_VERSION
- echo "::set-output name=file-name::$FILE_NAME"
+ echo "file-name=$FILE_NAME" >> $GITHUB_OUTPUT
REPO=war
if [ ${IS_LTS} = 'true' ]
@@ -87,7 +87,7 @@ jobs:
echo $PROJECT_VERSION
FILE_NAME=jenkins_${PROJECT_VERSION}_all.deb
IS_LTS=${{ needs.determine-version.outputs.is-lts }}
- echo "::set-output name=file-name::$FILE_NAME"
+ echo "file-name=$FILE_NAME" >> $GITHUB_OUTPUT
REPO=debian
if [ ${IS_LTS} = 'true' ]
@@ -125,7 +125,7 @@ jobs:
FILE_NAME=jenkins-${PROJECT_VERSION}-1.1.noarch.rpm
IS_LTS=${{ needs.determine-version.outputs.is-lts }}
- echo "::set-output name=file-name::$FILE_NAME"
+ echo "file-name=$FILE_NAME" >> $GITHUB_OUTPUT
REPO=redhat
if [ ${IS_LTS} = 'true' ]
@@ -163,7 +163,7 @@ jobs:
FILE_NAME=jenkins.msi
IS_LTS=${{ needs.determine-version.outputs.is-lts }}
- echo "::set-output name=file-name::$FILE_NAME"
+ echo "file-name=$FILE_NAME" >> $GITHUB_OUTPUT
REPO=windows
if [ ${IS_LTS} = 'true' ]
@@ -201,7 +201,7 @@ jobs:
# we need opensuse to the file
OUTPUT_FILE_NAME=jenkins-${PROJECT_VERSION}-1.2-opensuse.noarch.rpm
IS_LTS=${{ needs.determine-version.outputs.is-lts }}
- echo "::set-output name=file-name::$OUTPUT_FILE_NAME"
+ echo "file-name=$OUTPUT_FILE_NAME" >> $GITHUB_OUTPUT
REPO=opensuse
if [ ${IS_LTS} = 'true' ]
