Skip to content

Commit 21887e0

Browse files
authored
Обновление CI скрипта (#40)
* Run PDF generation on dev branch too * Use short SHA in artifact name
1 parent c1c5214 commit 21887e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
# PRs can only use caches from their target branch. We therefore need to
77
# make sure we run on 'main' too.
88
- main
9+
- dev
910
pull_request:
1011

1112
concurrency:
@@ -35,8 +36,12 @@ jobs:
3536
extra_system_packages: "font-liberation"
3637
latexmk_shell_escape: true
3738

39+
- name: Get short SHA for commit
40+
id: sha_short
41+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
42+
3843
- name: Upload PDF file
3944
uses: actions/upload-artifact@v4
4045
with:
41-
name: FormalLanguageConstrainedReachabilityLectureNotes_latest
46+
name: FormalLanguageConstrainedReachabilityLectureNotes_${{ steps.sha_short.outputs.sha_short }}
4247
path: tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf

0 commit comments

Comments
 (0)