Skip to content

Commit

Permalink
[skip ci] Update release.yml (#13261)
Browse files Browse the repository at this point in the history
Correctly define outputs of publish job
  • Loading branch information
puneetbehl authored Dec 5, 2023
1 parent 36f8d1e commit 913a479
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
contents: write # to create release
issues: write # to modify milestones
runs-on: ubuntu-latest
outputs:
release_version: ${{ steps.release_version.outputs.value }}
target_branch: ${{ steps.extract_branch.outputs.value }}
env:
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: behlp@unityfoundation.io
Expand All @@ -31,7 +34,7 @@ jobs:
echo "value=${TARGET_BRANCH}" >> $GITHUB_OUTPUT
- name: Set the current release version
id: release_version
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: Run pre-release
uses: ./.github/actions/pre-release
with:
Expand All @@ -50,14 +53,14 @@ jobs:
if: success()
uses: actions/upload-artifact@v3
with:
name: grails-${{ steps.release_version.outputs.release_version }}.zip
path: build/distributions/grails-${{ steps.release_version.outputs.release_version }}.zip
name: grails-${{ steps.release_version.outputs.value }}.zip
path: build/distributions/grails-${{ steps.release_version.outputs.value }}.zip
- name: Upload artifacts to the Github release
if: success()
id: upload_artifact
uses: Roang-zero1/github-upload-release-artifacts-action@master
with:
args: build/distributions/grails-${{ steps.release_version.outputs.release_version }}.zip
args: build/distributions/grails-${{ steps.release_version.outputs.value }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate secring file
Expand Down Expand Up @@ -99,7 +102,7 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
ref: v${{ needs.publish.inputs.release_version }}
ref: v${{ needs.publish.outputs.release_version }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand All @@ -124,13 +127,13 @@ jobs:
run: |
echo "value={\"grails_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
env:
RELEASE_VERSION: ${{ needs.publish.steps.release_version.outputs.release_version }}
RELEASE_VERSION: ${{ needs.publish.outputs.release_version }}
- name: Invoke grails-doc release workflow
uses: benc-uk/workflow-dispatch@v1.2
with:
workflow: Release
repo: grails/grails-doc
ref: ${{ needs.publish.steps.extract_branch.outputs.value }}
ref: ${{ needs.publish.outputs.target_branch }}
token: ${{ secrets.GH_TOKEN }}
inputs: ${{ steps.prep_inputs.outputs.value }}
website:
Expand All @@ -144,7 +147,7 @@ jobs:
run: |
echo "value={\"grails_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
env:
RELEASE_VERSION: ${{ needs.publish.steps.release_version.outputs.release_version }}
RELEASE_VERSION: ${{ needs.publish.outputs.release_version }}
- name: Invoke grails-static-website release workflow
if: success()
id: grails_static_website
Expand Down

0 comments on commit 913a479

Please sign in to comment.