Skip to content

Commit

Permalink
fix(ci): well fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phucvinh57 committed May 20, 2023
1 parent ca14e0f commit 8d743d5
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,15 @@ jobs:
release:
runs-on: ubuntu-latest
outputs:
build: ${{ steps.checking-release.outputs.build }}
tag_name: ${{ steps.checking-release.outputs.tag_name }}
build: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
pull-request-header: "Bot (:robot:) requested to create a new release on ${{ github.ref_name }}"

- name: Check for new release or create PR
id: checking-release
run: |
if [ ${{ steps.release.outputs.release_created == 'true' }} ]; then
echo "build=true" >> $GITHUB_OUTPUT
echo "tag_name=${{ steps.release.outputs.tag_name }}" >> $GITHUB_OUTPUT
else
echo "build=false" >> $GITHUB_OUTPUT
fi
- name: Log outputs
run: |
echo '${{ toJson(steps.checking-release) }}'
build:
name: Build
needs: [release]
Expand Down

0 comments on commit 8d743d5

Please sign in to comment.