Skip to content

Commit

Permalink
refactor(ci): use github-script for outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 16, 2024
1 parent fbf3bc6 commit b4ed04a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: get-release-version
shell: bash
run: |
appVersion=$(echo ${{ github.event.release.name }} | cut -d'v' -f 2)
echo "version=$appVersion" >> "$GITHUB_OUPUT"
- uses: actions/github-script@v7
id: get-release-version
with:
script: return "${{ github.event.release.name }}".substring(1)
result-encoding: string
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -42,16 +42,16 @@ jobs:
with:
file: Dockerfile.jvm
push: true
tags: lgdd/liferay-starter:latest-jvm,lgdd/liferay-starter:${{ steps.get-release-version.outputs.version }}-jvm
tags: lgdd/liferay-starter:latest-jvm,lgdd/liferay-starter:${{ steps.get-release-version.outputs.result }}-jvm
push-native-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: get-release-version
shell: bash
run: |
appVersion=$(echo ${{ github.event.release.name }} | cut -d'v' -f 2)
echo "version=$appVersion" >> "$GITHUB_OUPUT"
- uses: actions/github-script@v7
id: get-release-version
with:
script: return "${{ github.event.release.name }}".substring(1)
result-encoding: string
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -66,4 +66,4 @@ jobs:
with:
file: Dockerfile.native
push: true
tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:${{ steps.get-release-version.outputs.version }}
tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:${{ steps.get-release-version.outputs.result }}

0 comments on commit b4ed04a

Please sign in to comment.