mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
RELENV_DATA
is now a global workflow environment variable
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
b018eae8b4
commit
da013a6425
2 changed files with 2 additions and 3 deletions
4
.github/actions/setup-relenv/action.yml
vendored
4
.github/actions/setup-relenv/action.yml
vendored
|
@ -24,14 +24,12 @@ runs:
|
|||
- name: Set environment variables
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -c "import os; os.makedirs('.relenv', exist_ok=True)"
|
||||
echo RELENV_DATA="$(pwd)/.relenv" >> $GITHUB_ENV
|
||||
echo RELENV_VERSION="$(python3 -m pip show relenv | grep Version | cut -d ' ' -f2)" >> $GITHUB_ENV
|
||||
|
||||
- name: Cache Relenv Data Directory
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ env.RELENV_DATA }}
|
||||
path: ${{ github.workspace }}/.relenv
|
||||
key: ${{ env.CACHE_SEED }}|relenv|${{ env.RELENV_VERSION }}|${{ inputs.platform }}|${{ inputs.arch }}
|
||||
|
||||
- name: Fetch Toolchain
|
||||
|
|
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -27,6 +27,7 @@ on:
|
|||
env:
|
||||
COLUMNS: 160
|
||||
CACHE_SEED: SEED-2 # Bump the number to invalidate all caches
|
||||
RELENV_DATA: "${{ github.workspace }}/.relenv"
|
||||
|
||||
permissions:
|
||||
contents: read # for dorny/paths-filter to fetch a list of changed files
|
||||
|
|
Loading…
Add table
Reference in a new issue