Skip to content

Commit

Permalink
Merge pull request #1745 from grails/remove-set-output-cmd
Browse files Browse the repository at this point in the history
Remove deprecated set-output command
  • Loading branch information
puneetbehl authored Jul 21, 2023
2 parents a09dbbb + 299b5f6 commit 9c4d1e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ jobs:
- name: Extract branch name
if: steps.publish.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: Create Snapshot Message for the Workflow Dispatch
if: success() && github.event_name == 'push' && matrix.java == '8'
id: dispatch_message
run: echo ::set-output name=value::{\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}
run: echo "value={\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT
- name: Invoke the Java CI workflow in GORM Hibernate5
if: success() && github.event_name == 'push' && matrix.java == '8'
uses: benc-uk/workflow-dispatch@v1.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
id: check_release_drafter
run: |
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
echo ::set-output name=has_release_drafter::${has_release_drafter}
echo "has_release_drafter=${has_release_drafter}" >> $GITHUB_OUTPUT
- name: Extract branch name
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
# If it has release drafter:
- uses: release-drafter/release-drafter@v5
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
echo "Determining Target Branch"
TARGET_BRANCH=`cat $GITHUB_EVENT_PATH | jq '.release.target_commitish' | sed -e 's/^"\(.*\)"$/\1/g'`
echo $TARGET_BRANCH
echo ::set-output name=value::${TARGET_BRANCH}
echo "value=${TARGET_BRANCH}" >> $GITHUB_OUTPUT
- name: Set the current release version
id: release_version
run: echo ::set-output name=release_version::${GITHUB_REF:11}
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: Run pre-release
uses: micronaut-projects/github-actions/pre-release@master
with:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
if: steps.assemble.outcome == 'success'
id: gorm_docs_release_message
run: |
echo ::set-output name=value::{\"gorm_version\":\"$RELEASE_VERSION\"}
echo "value={\"gorm_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
env:
RELEASE_VERSION: ${{ steps.release_version.outputs.release_version }}
- name: Invoke gorm-docs release workflow
Expand Down

0 comments on commit 9c4d1e5

Please sign in to comment.