Skip to content

Commit

Permalink
fix: duplications in ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinying committed Aug 3, 2024
1 parent 99fc461 commit db5c667
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
10 changes: 9 additions & 1 deletion .github/actions/setup-pandoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ inputs:
runs:
using: "composite"
steps:
- name: Load cached Pandoc
id: cached-pandoc
uses: actions/cache@v4
with:
path: /usr/local/bin/pandoc
key: pandoc-${{ runner.os }}-${{ hashFiles('.tool-versions') }}

- name: Install Pandoc
if: steps.cached-pandoc.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y pandoc=${{ inputs.python-version }}
shell: bash
15 changes: 1 addition & 14 deletions .github/actions/setup-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runs:
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
plugins: oetry-plugin-export

- name: Load cached venv
id: cached-poetry-dependencies
Expand All @@ -31,17 +32,3 @@ runs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
shell: bash

- name: Load cached Pandoc
id: cached-pandoc
uses: actions/cache@v4
with:
path: /usr/local/bin/pandoc
key: pandoc-${{ runner.os }}-${{ hashFiles('.tool-versions') }}

- name: Install Pandoc
if: steps.cached-pandoc.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y pandoc
shell: bash

0 comments on commit db5c667

Please sign in to comment.