Scheduling infrastructure for absolutely everyone.
chore: Update GitHub env caching to use current PR details (#10096)
Keith Williamsdf686370abd4
diff --git a/.github/actions/env-read-file/action.yml b/.github/actions/env-read-file/action.ymlindex d1c0175e4c0..d3a90d532ca 100644--- a/.github/actions/env-read-file/action.yml+++ b/.github/actions/env-read-file/action.yml@@ -2,14 +2,16 @@ name: "Set environment variables"description: "Configures environment variables for a workflow"runs:using: "composite"+steps:- - name: Create env file+ - name: Read env fileuses: buildjet/cache@v3id: env-cachewith:- path: gh.env- key: env-cache-${{ hashFiles('gh.env') }}+ path: gh.env-${{ github.sha }}+ key: env-cache+ restore-keys: env-cache-- name: Set Environment Variablesuses: tw3lveparsecs/github-actions-setvars@latestwith:- envFilePath: gh.env+ envFilePath: gh.env-${{ github.sha }}diff --git a/.github/workflows/env-create-file.yml b/.github/workflows/env-create-file.ymlindex 6cf7f6dcdb4..5da229a00a5 100644--- a/.github/workflows/env-create-file.yml+++ b/.github/workflows/env-create-file.yml@@ -4,6 +4,7 @@ on:workflow_call:env:+ ENV_FILE_NAME: gh.env-${{ github.sha }}INPUT_ENV_DATABASE_URL: postgresql://postgres:@localhost:5432/calendsoINPUT_ENV_NEXT_PUBLIC_WEBAPP_URL: http://localhost:3000INPUT_ENV_NEXT_PUBLIC_WEBSITE_URL: http://localhost:3000@@ -44,10 +45,11 @@ jobs:- uses: actions/checkout@v3- uses: ./.github/actions/dangerous-git-checkout- uses: ozaytsev86/create-env-file@v1+with:- file-name: ${{ github.workspace }}/gh.env+ file-name: ${{ github.workspace }}/${{ env.ENV_FILE_NAME }}- uses: buildjet/cache@v3id: env-cachewith:- path: gh.env- key: env-cache-${{ hashFiles('gh.env') }}+ path: ${{ env.ENV_FILE_NAME }}+ key: env-cache-${{ hashFiles(env.ENV_FILE_NAME) }}