From 5b1190fb96584cb3982009cf7183f6e8c2e9c690 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 29 Jul 2024 15:06:14 +0100 Subject: [PATCH] fix: Updates tag output, and changes release asset uploader base action --- .github/workflows/compile.yml | 9 ++++----- .github/workflows/tag.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a309f9e..01a9fb4 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -69,6 +69,7 @@ jobs: else echo "TAG_NAME=${{ github.ref }}" >> $GITHUB_ENV fi + echo "Determined TAG_NAME=${{ env.TAG_NAME }}" - name: 📤 Download PDF artifact uses: actions/download-artifact@v2 @@ -89,9 +90,7 @@ jobs: prerelease: false - name: 📤 Upload PDF to Release - uses: actions/upload-release-asset@v1 + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: out/${{ env.PDF_NAME }} - asset_name: ${{ env.PDF_NAME }} - asset_content_type: application/pdf + files: out/${{ env.PDF_NAME }} + token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 69574de..ab2e2b3 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -64,7 +64,7 @@ jobs: NEW_TAG=${{ env.NEW_TAG }} DESCRIPTION="${{ github.event.inputs.description }}" git tag -a "$NEW_TAG" -m "$DESCRIPTION" - echo "::set-output name=new_tag::$NEW_TAG" + echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT - name: 🚀 Push New Tag run: |