From 5c61b37a1bc40f1a223c370b3b69b08654aada47 Mon Sep 17 00:00:00 2001 From: Jeremy Leibs Date: Fri, 21 Apr 2023 00:50:47 +0200 Subject: [PATCH] Add ability to save cache to manual_disaptch.yml --- .github/workflows/manual_dispatch.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/manual_dispatch.yml b/.github/workflows/manual_dispatch.yml index b5da9456050d..6d0f71901a4d 100644 --- a/.github/workflows/manual_dispatch.yml +++ b/.github/workflows/manual_dispatch.yml @@ -30,6 +30,11 @@ on: type: boolean required: true default: false + save_cache: + description: 'Save Cache' + type: boolean + required: true + default: false jobs: lint_all: @@ -37,7 +42,7 @@ jobs: if: ${{ github.event.inputs.lints == 'true' }} uses: ./.github/workflows/reusable_lint.yml with: - SAVE_CACHE: false + SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }} secrets: CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -46,7 +51,7 @@ jobs: if: ${{ github.event.inputs.build_linux == 'true' }} uses: ./.github/workflows/reusable_build_and_test.yml with: - SAVE_CACHE: false + SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }} PLATFORM: linux secrets: CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -56,7 +61,7 @@ jobs: if: ${{ github.event.inputs.build_windows == 'true'}} uses: ./.github/workflows/reusable_build_and_test.yml with: - SAVE_CACHE: false + SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }} PLATFORM: windows secrets: CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -66,7 +71,7 @@ jobs: if: ${{ github.event.inputs.build_macos_arm == 'true' }} uses: ./.github/workflows/reusable_build_and_test.yml with: - SAVE_CACHE: false + SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }} PLATFORM: macos-arm secrets: CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -76,7 +81,7 @@ jobs: if: ${{ github.event.inputs.build_macos_intel == 'true' }} uses: ./.github/workflows/reusable_build_and_test.yml with: - SAVE_CACHE: false + SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }} PLATFORM: macos-intel secrets: CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}