Skip to content

Commit 94f0e68

Browse files
committed
use tagged pandoc version
1 parent e1317d4 commit 94f0e68

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,21 @@ jobs:
3535
- name: Checkout Pandoc-wasm
3636
uses: actions/checkout@v4
3737

38+
- name: Extract versions from version.txt
39+
id: extract-version
40+
run: |
41+
VERSION=$(cat version.txt)
42+
echo "Extracted version: $VERSION"
43+
PANDOC_VERSION=$(echo $VERSION | cut -d '+' -f 2)
44+
echo "Extracted Pandoc version: $VERSION"
45+
echo "VERSION=$VERSION" >> $GITHUB_ENV
46+
echo "PANDOC_VERSION=$PANDOC_VERSION" >> $GITHUB_ENV
47+
3848
- name: Checkout Pandoc
3949
uses: actions/checkout@v4
4050
with:
4151
repository: jgm/pandoc
42-
ref: main
52+
ref: ${{ env.PANDOC_VERSION }}
4353
path: pandoc
4454

4555
- name: Patch Pandoc sources
@@ -48,13 +58,6 @@ jobs:
4858
patch -p1 < ../patch/pandoc.patch
4959
cd ..
5060
51-
- name: Extract version from pandoc.cabal
52-
id: extract-version
53-
run: |
54-
VERSION=$(grep '^version:' pandoc/pandoc.cabal | awk '{print $2}')
55-
echo "Extracted version: $VERSION"
56-
echo "VERSION=$VERSION" >> $GITHUB_ENV
57-
5861
- name: gen-plan-json
5962
run: |
6063
pushd pandoc

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1+3.6.3

0 commit comments

Comments
 (0)