From 4c7955b099f2b62298a7fcfdb2927da323112ab7 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Fri, 7 Mar 2025 17:04:27 +0100 Subject: [PATCH] Add actions cache variable exposure to build workflows --- .github/workflows/build.yml | 4 ---- .github/workflows/linux-release-build.yml | 7 +++++++ .github/workflows/macos-release-build.yml | 7 +++++++ .github/workflows/windows-release-build.yml | 7 +++++++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b22341ca6..bec46b34c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -471,10 +471,6 @@ jobs: submodules: recursive token: ${{ secrets.DEPLOY_KEY }} - - name: Git pull - run: | - git pull - - name: Download artifact uses: actions/download-artifact@v4 diff --git a/.github/workflows/linux-release-build.yml b/.github/workflows/linux-release-build.yml index 5246a9aa0..6de6c58d6 100644 --- a/.github/workflows/linux-release-build.yml +++ b/.github/workflows/linux-release-build.yml @@ -59,6 +59,13 @@ jobs: with: disable_annotations: true + - name: Expose actions cache variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL']) + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']) + - name: Setup Git run: | git config --global user.email "mauro-balades@users.noreply.github.com" diff --git a/.github/workflows/macos-release-build.yml b/.github/workflows/macos-release-build.yml index 86340021d..13c9b0d13 100644 --- a/.github/workflows/macos-release-build.yml +++ b/.github/workflows/macos-release-build.yml @@ -47,6 +47,13 @@ jobs: with: disable_annotations: true + - name: Expose actions cache variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL']) + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']) + - name: Setup Python uses: actions/setup-python@v5 # note: This will use the version defined in '.python-version' by default diff --git a/.github/workflows/windows-release-build.yml b/.github/workflows/windows-release-build.yml index 59fd3a8c1..602e397a4 100644 --- a/.github/workflows/windows-release-build.yml +++ b/.github/workflows/windows-release-build.yml @@ -65,6 +65,13 @@ jobs: with: disable_annotations: true + - name: Expose actions cache variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL']) + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']) + - name: Setup Git run: | git config --global user.email "mauro-balades@users.noreply.github.com"