Skip to content

Commit 299b5f6

Browse files
committed
Remove deprecated set-output command
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent ccda954 commit 299b5f6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
- name: Extract branch name
6060
if: steps.publish.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
6161
id: extract_branch
62-
run: echo ::set-output name=value::${GITHUB_REF:11}
62+
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
6363
- name: Create Snapshot Message for the Workflow Dispatch
6464
if: success() && github.event_name == 'push' && matrix.java == '8'
6565
id: dispatch_message
66-
run: echo ::set-output name=value::{\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}
66+
run: echo "value={\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT
6767
- name: Invoke the Java CI workflow in GORM Hibernate5
6868
if: success() && github.event_name == 'push' && matrix.java == '8'
6969
uses: benc-uk/[email protected]

.github/workflows/release-notes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
id: check_release_drafter
1717
run: |
1818
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
19-
echo ::set-output name=has_release_drafter::${has_release_drafter}
19+
echo "has_release_drafter=${has_release_drafter}" >> $GITHUB_OUTPUT
2020
- name: Extract branch name
2121
id: extract_branch
22-
run: echo ::set-output name=value::${GITHUB_REF:11}
22+
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
2323
# If it has release drafter:
2424
- uses: release-drafter/release-drafter@v5
2525
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
echo "Determining Target Branch"
2929
TARGET_BRANCH=`cat $GITHUB_EVENT_PATH | jq '.release.target_commitish' | sed -e 's/^"\(.*\)"$/\1/g'`
3030
echo $TARGET_BRANCH
31-
echo ::set-output name=value::${TARGET_BRANCH}
31+
echo "value=${TARGET_BRANCH}" >> $GITHUB_OUTPUT
3232
- name: Set the current release version
3333
id: release_version
34-
run: echo ::set-output name=release_version::${GITHUB_REF:11}
34+
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
3535
- name: Run pre-release
3636
uses: micronaut-projects/github-actions/pre-release@master
3737
with:
@@ -71,7 +71,7 @@ jobs:
7171
if: steps.assemble.outcome == 'success'
7272
id: gorm_docs_release_message
7373
run: |
74-
echo ::set-output name=value::{\"gorm_version\":\"$RELEASE_VERSION\"}
74+
echo "value={\"gorm_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
7575
env:
7676
RELEASE_VERSION: ${{ steps.release_version.outputs.release_version }}
7777
- name: Invoke gorm-docs release workflow

0 commit comments

Comments
 (0)