diff --git a/.github/actions/env-read-file/action.yml b/.github/actions/env-read-file/action.yml index e655f7a764e827..76903af4fc4c58 100644 --- a/.github/actions/env-read-file/action.yml +++ b/.github/actions/env-read-file/action.yml @@ -8,13 +8,13 @@ runs: uses: actions/cache@v3 id: env-cache with: - path: .github/.env - key: env-cache-${{ hashFiles('.github/.env') }} + path: .github/variables/gh.env + key: env-cache-${{ hashFiles('.github/variables/gh.env') }} - name: Set Environment Variables if: steps.env-cache.outputs.cache-hit == 'true' uses: tw3lveparsecs/github-actions-setvars@latest with: - envFilePath: .github/.env + envFilePath: .github/variables/gh.env - name: Set Environment Variables if: steps.env-cache.outputs.cache-hit != 'true' shell: bash diff --git a/.github/variables/gh.env b/.github/variables/gh.env new file mode 100644 index 00000000000000..dc7916b2eb3f5d --- /dev/null +++ b/.github/variables/gh.env @@ -0,0 +1 @@ +# Do not modify this file, it's needed for CI diff --git a/.github/workflows/env-create-file.yml b/.github/workflows/env-create-file.yml index b09d26ee816cc3..d2bc70df0c7c20 100644 --- a/.github/workflows/env-create-file.yml +++ b/.github/workflows/env-create-file.yml @@ -42,9 +42,9 @@ jobs: uses: actions/cache@v3 id: env-cache with: - path: .github/.env - key: env-cache-${{ hashFiles('.github/.env') }} + path: .github/variables/gh.env + key: env-cache-${{ hashFiles('.github/variables/gh.env') }} - uses: ozaytsev86/create-env-file@v1 if: steps.env-cache.outputs.cache-hit != 'true' with: - file-name: ${{ github.workspace }}/.github/.env + file-name: ${{ github.workspace }}/.github/variables/gh.env