Skip to content

Commit f408c14

Browse files
another attempt to fix detached head
1 parent 33557bf commit f408c14

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/draft-pdf.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ on:
22
push:
33
branches:
44
- main
5-
# tags:
6-
# - "paper*"
5+
tags:
6+
- "paper*"
77
pull_request:
88
branches:
99
- main
@@ -14,10 +14,6 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 2
19-
- run:
20-
git checkout HEAD^
2117
- name: Build draft PDF
2218
uses: openjournals/openjournals-draft-action@master
2319
with:
@@ -37,3 +33,4 @@ jobs:
3733
with:
3834
message: '(auto) Paper PDF Draft'
3935
add: 'paper/paper.pdf'
36+
push: origin HEAD:{{ github.head_ref }}

0 commit comments

Comments
 (0)