mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Move secret out of composite action since it is not supported directly
This commit is contained in:
parent
bb00887832
commit
cb7bdfcd81
2 changed files with 9 additions and 1 deletions
6
.github/actions/run_tests/action.yaml
vendored
6
.github/actions/run_tests/action.yaml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: run jrnl tests
|
||||
description: Runs all jrnl tests on multiple platforms
|
||||
inputs:
|
||||
cache-string:
|
||||
description: 'Cache string secret. Change to bust the cache'
|
||||
required: true
|
||||
shell: bash
|
||||
runs:
|
||||
using: "composite"
|
||||
|
@ -20,7 +24,7 @@ runs:
|
|||
uses: actions/cache@v2
|
||||
with:
|
||||
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
|
||||
run: |
|
||||
|
|
4
.github/workflows/testing_prs.yaml
vendored
4
.github/workflows/testing_prs.yaml
vendored
|
@ -36,4 +36,8 @@ jobs:
|
|||
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
cache-string: ${{ secrets.CACHE_STRING }}
|
||||
- uses: ./.github/actions/run_tests
|
||||
with:
|
||||
cache-string: ${{ secrets.CACHE_STRING }}
|
||||
|
|
Loading…
Add table
Reference in a new issue