Skip to content

Commit

Permalink
fix(release): pass output between github workflows with needs
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Nov 16, 2022
1 parent 0930613 commit 63be7d8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jobs:
uses: ahmadnassri/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save release status to environment variables
run: |
echo "RELEASED=${{ steps.release.outputs.published }}" >> $GITHUB_ENV
echo "GIT_TAG=${{ steps.release.outputs.release-git-tag }}" >> $GITHUB_ENV
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
temp: "${{ steps.release.outputs.published }}"

artifacts:
needs: release
Expand All @@ -55,9 +47,9 @@ jobs:
- name: Compress and rename artifacts
run: tar -C /tmp/build/ -czvf ${{ matrix.target }}.tar.gz .
- name: Add Release Artifacts to the Github Release
if: steps['release']['outputs']['published'] == 'true'
if: ${{ needs.release.outputs.published }} == 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.release.outputs.release-git-tag}}
tag_name: ${{ needs.release.outputs.release-git-tag }}
files: ${{ matrix.target }}.tar.gz

0 comments on commit 63be7d8

Please sign in to comment.