Move secret out of composite action since it is not supported directly

This commit is contained in:
Micah Jerome Ellison 2021-12-11 14:47:37 -08:00
parent bb00887832
commit cb7bdfcd81
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,9 @@
name: run jrnl tests name: run jrnl tests
description: Runs all jrnl tests on multiple platforms description: Runs all jrnl tests on multiple platforms
inputs:
cache-string:
description: 'Cache string secret. Change to bust the cache'
required: true
shell: bash shell: bash
runs: runs:
using: "composite" using: "composite"
@ -20,7 +24,7 @@ runs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: .venv path: .venv
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }} key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ inputs.cache-string }}
- name: Install dependencies - name: Install dependencies
run: | run: |

View file

@ -36,4 +36,8 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ] os: [ ubuntu-latest, macos-latest, windows-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
cache-string: ${{ secrets.CACHE_STRING }}
- uses: ./.github/actions/run_tests - uses: ./.github/actions/run_tests
with:
cache-string: ${{ secrets.CACHE_STRING }}