Skip to content

Commit

Permalink
output sha as tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucknalla authored Aug 6, 2020
1 parent d7819e9 commit c3fcff5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ 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
uses: actions/create-release@v1
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
Expand All @@ -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


0 comments on commit c3fcff5

Please sign in to comment.