File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 22
22
env :
23
23
TEXINPUTS : " .:../latex-support//:./latex-support//:"
24
24
25
+ - name : Extract and set tag name
26
+ run : echo "TAG_NAME=${GITHUB_REF#refs/tags/lab_}" >> $GITHUB_ENV
27
+
25
28
- name : Rename the output PDF
26
29
run : |
27
- TAG_NAME=${GITHUB_REF#refs/tags/lab_}
28
30
mv lab-instructions/dodlabs.pdf lab-instructions/dodlabs_${TAG_NAME}.pdf
29
31
30
32
- name : Create Release
33
35
env :
34
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
37
with :
36
- tag_name : ${{ github.ref }}
37
- release_name : Release ${{ github.ref }}
38
+ tag_name : ${{ env.TAG_NAME }}
39
+ release_name : Release ${{ env.TAG_NAME }}
38
40
draft : false
39
41
prerelease : false
40
42
44
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
47
with :
46
48
upload_url : ${{ steps.create_release.outputs.upload_url }}
47
- asset_path : ./lab-instructions/dodlabs_${{ github.ref_name } }.pdf
48
- asset_name : dodlabs_${{ github.ref_name } }.pdf
49
+ asset_path : ./lab-instructions/dodlabs_${TAG_NAME }.pdf
50
+ asset_name : dodlabs_${TAG_NAME }.pdf
49
51
asset_content_type : application/pdf
You can’t perform that action at this time.
0 commit comments