diff --git a/.github/workflows/main-draft.yml b/.github/workflows/main-draft.yml index 7ba8e66..b8c7de9 100644 --- a/.github/workflows/main-draft.yml +++ b/.github/workflows/main-draft.yml @@ -23,7 +23,6 @@ jobs: id: vars shell: bash run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Create Release id: create_release @@ -31,8 +30,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ sha_short }}_draft - release_name: ${{ sha_short }}_draft + tag_name: ${{ steps.vars.outputs.sha_short }}_draft + release_name: ${{ steps.vars.outputs.sha_short }}_draft draft: false prerelease: true - name: Upload Release Asset @@ -43,7 +42,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ./root.pdf - asset_name: ${{ sha_short }}_draft.pdf + asset_name: ${{ steps.vars.outputs.sha_short }}_draft.pdf asset_content_type: application/pdf