Skip to content

Commit 8d0d216

Browse files
committed
Fixing CI workflow (12)
1 parent d112947 commit 8d0d216

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/latex-build.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
env:
2323
TEXINPUTS: ".:../latex-support//:./latex-support//:"
2424

25+
- name: Extract and set tag name
26+
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/lab_}" >> $GITHUB_ENV
27+
2528
- name: Rename the output PDF
2629
run: |
27-
TAG_NAME=${GITHUB_REF#refs/tags/lab_}
2830
mv lab-instructions/dodlabs.pdf lab-instructions/dodlabs_${TAG_NAME}.pdf
2931
3032
- name: Create Release
@@ -33,8 +35,8 @@ jobs:
3335
env:
3436
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3537
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 }}
3840
draft: false
3941
prerelease: false
4042

@@ -44,6 +46,6 @@ jobs:
4446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4547
with:
4648
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
4951
asset_content_type: application/pdf

0 commit comments

Comments
 (0)