Skip to content

Commit

Permalink
ci(releaser): install pandoc with tarball instead of apt
Browse files Browse the repository at this point in the history
Change-Id: I16eb539ee9da0ceec5a4cf9ae335df78d09ae3de
  • Loading branch information
sileht committed Sep 7, 2021
1 parent 313259a commit 85bb141
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@ jobs:
with:
python-version: 3.9.6

- name: Build release notes 📝
id: relnote
- name: Setup dependencies 🔧
run: |
set -e
set -o pipefail
pip install reno
sudo apt install -y pandoc
curl -L https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-linux-amd64.tar.gz \
| tar -xzf - --strip-components=2 pandoc-2.14.2/bin/pandoc
- name: Build release notes 📝
id: relnote
run: |
set -e
set -o pipefail
git fetch --tag
VERSION=$(reno -q semver-next)
Expand All @@ -45,15 +52,15 @@ jobs:
echo "** MARKDOWN **"
reno -q report --version $VERSION --title "" --no-show-source |\
pandoc -t markdown --shift-heading-level-by=-1
./pandoc -t markdown --shift-heading-level-by=-1
echo "** FILTER **"
reno -q report --version $VERSION --title "" --no-show-source |\
pandoc -t markdown --shift-heading-level-by=-1 |\
./pandoc -t markdown --shift-heading-level-by=-1 |\
sed -e '/^\.\./,+1d' -e '1,4d'
reno -q report --version $VERSION --title "" --no-show-source | \
pandoc -t markdown --shift-heading-level-by=-1 | \
./pandoc -t markdown --shift-heading-level-by=-1 | \
sed -e '/^\.\./,+1d' -e '1,4d' > ${{ github.workspace }}-CHANGELOG.txt
echo "::set-output name=VERSION::$VERSION"
Expand Down

0 comments on commit 85bb141

Please sign in to comment.