mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Drop the cache-suffix
from the setup-python-tools-scripts
action
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
3ce935eb21
commit
234693b4aa
9 changed files with 19 additions and 40 deletions
|
@ -7,10 +7,6 @@ inputs:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: Seed used to invalidate caches
|
description: Seed used to invalidate caches
|
||||||
cache-suffix:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: Seed used to invalidate caches
|
|
||||||
cwd:
|
cwd:
|
||||||
type: string
|
type: string
|
||||||
description: The directory the salt checkout is located in
|
description: The directory the salt checkout is located in
|
||||||
|
@ -42,8 +38,8 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
VENV_NAME_HASH=$(echo "${{ inputs.cache-prefix }}|${{ github.workflow }}|${{
|
VENV_NAME_HASH=$(echo "${{ inputs.cache-prefix }}|${{ github.workflow }}|${{
|
||||||
steps.get-python-version.outputs.version-sha256sum }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}${{
|
steps.get-python-version.outputs.version-sha256sum }}|${{
|
||||||
inputs.cache-suffix || '' }}" | sha256sum | cut -d ' ' -f 1)
|
hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}" | sha256sum | cut -d ' ' -f 1)
|
||||||
echo "TOOLS_VIRTUALENV_CACHE_SEED=$VENV_NAME_HASH" | tee -a "${GITHUB_ENV}"
|
echo "TOOLS_VIRTUALENV_CACHE_SEED=$VENV_NAME_HASH" | tee -a "${GITHUB_ENV}"
|
||||||
echo "venv-hash=$VENV_NAME_HASH" | tee -a "${GITHUB_OUTPUT}"
|
echo "venv-hash=$VENV_NAME_HASH" | tee -a "${GITHUB_OUTPUT}"
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ inputs.cache-seed }}
|
cache-prefix: ${{ inputs.cache-seed }}-build-deps-linux-${{ matrix.arch }}
|
||||||
cache-suffix: build-deps-linux-${{ matrix.arch }}
|
|
||||||
|
|
||||||
- name: Setup Relenv
|
- name: Setup Relenv
|
||||||
id: setup-relenv
|
id: setup-relenv
|
||||||
|
|
|
@ -64,8 +64,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ inputs.cache-seed }}
|
cache-prefix: ${{ inputs.cache-seed }}-build-deps-macos
|
||||||
cache-suffix: build-deps-macos
|
|
||||||
|
|
||||||
- name: Setup Relenv
|
- name: Setup Relenv
|
||||||
id: setup-relenv
|
id: setup-relenv
|
||||||
|
|
|
@ -65,8 +65,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ inputs.cache-seed }}
|
cache-prefix: ${{ inputs.cache-seed }}-build-deps-windows-${{ matrix.arch }}
|
||||||
cache-suffix: build-deps-windows-${{ matrix.arch }}
|
|
||||||
|
|
||||||
- name: Setup Relenv
|
- name: Setup Relenv
|
||||||
id: setup-relenv
|
id: setup-relenv
|
||||||
|
|
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -279,8 +279,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog
|
||||||
cache-suffix: changelog
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -400,8 +399,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build
|
||||||
cache-suffix: build
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -2741,8 +2739,7 @@ jobs:
|
||||||
id: python-tools-scripts
|
id: python-tools-scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-coverage
|
||||||
cache-suffix: coverage
|
|
||||||
|
|
||||||
- name: Install Nox
|
- name: Install Nox
|
||||||
run: |
|
run: |
|
||||||
|
|
9
.github/workflows/nightly.yml
vendored
9
.github/workflows/nightly.yml
vendored
|
@ -323,8 +323,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog
|
||||||
cache-suffix: changelog
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -449,8 +448,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build
|
||||||
cache-suffix: build
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -2802,8 +2800,7 @@ jobs:
|
||||||
id: python-tools-scripts
|
id: python-tools-scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-coverage
|
||||||
cache-suffix: coverage
|
|
||||||
|
|
||||||
- name: Install Nox
|
- name: Install Nox
|
||||||
run: |
|
run: |
|
||||||
|
|
9
.github/workflows/scheduled.yml
vendored
9
.github/workflows/scheduled.yml
vendored
|
@ -313,8 +313,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog
|
||||||
cache-suffix: changelog
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -434,8 +433,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build
|
||||||
cache-suffix: build
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -2775,8 +2773,7 @@ jobs:
|
||||||
id: python-tools-scripts
|
id: python-tools-scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-coverage
|
||||||
cache-suffix: coverage
|
|
||||||
|
|
||||||
- name: Install Nox
|
- name: Install Nox
|
||||||
run: |
|
run: |
|
||||||
|
|
6
.github/workflows/staging.yml
vendored
6
.github/workflows/staging.yml
vendored
|
@ -317,8 +317,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog
|
||||||
cache-suffix: changelog
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -439,8 +438,7 @@ jobs:
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build
|
||||||
cache-suffix: build
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
|
9
.github/workflows/templates/ci.yml.jinja
vendored
9
.github/workflows/templates/ci.yml.jinja
vendored
|
@ -71,8 +71,7 @@
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog
|
||||||
cache-suffix: changelog
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -218,8 +217,7 @@
|
||||||
- name: Setup Python Tools Scripts
|
- name: Setup Python Tools Scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build
|
||||||
cache-suffix: build
|
|
||||||
|
|
||||||
- name: Setup Salt Version
|
- name: Setup Salt Version
|
||||||
id: setup-salt-version
|
id: setup-salt-version
|
||||||
|
@ -330,8 +328,7 @@
|
||||||
id: python-tools-scripts
|
id: python-tools-scripts
|
||||||
uses: ./.github/actions/setup-python-tools-scripts
|
uses: ./.github/actions/setup-python-tools-scripts
|
||||||
with:
|
with:
|
||||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}
|
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-coverage
|
||||||
cache-suffix: coverage
|
|
||||||
|
|
||||||
- name: Install Nox
|
- name: Install Nox
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue