From 84c0e8c7a59a3c780d9d3660e54f4796e3b553ba Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 3 Jul 2026 10:58:18 +0800 Subject: [PATCH 1/2] Tests: Update GitHub Actions for Node 20 deprecation --- .github/workflows/tests.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c322ab..bbac577 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,11 +58,8 @@ jobs: # Make sure your committed .env.dist.testing file ends with a newline. # The formatting of the contents to include a blank newline is deliberate. - name: Define GitHub Secrets in .env.dist.testing - uses: DamianReeves/write-file-action@v1.3 - with: - path: .env.dist.testing - contents: | - + run: | + cat > .env.dist.testing << 'ENVEOF' CONVERTKIT_OAUTH_ACCESS_TOKEN=${{ env.KIT_OAUTH_ACCESS_TOKEN }} CONVERTKIT_OAUTH_REFRESH_TOKEN=${{ env.KIT_OAUTH_REFRESH_TOKEN }} CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA=${{ env.KIT_OAUTH_ACCESS_TOKEN_NO_DATA }} @@ -71,7 +68,7 @@ jobs: CONVERTKIT_OAUTH_CLIENT_ID=${{ secrets.CONVERTKIT_OAUTH_CLIENT_ID }} CONVERTKIT_OAUTH_CLIENT_SECRET=${{ secrets.CONVERTKIT_OAUTH_CLIENT_SECRET }} CONVERTKIT_OAUTH_REDIRECT_URI=${{ secrets.CONVERTKIT_OAUTH_REDIRECT_URI }} - write-mode: append + ENVEOF # Rename .env.dist.testing to .env, so PHPUnit reads it for tests. - name: Rename .env.dist.testing to .env From c3ee593fa09d4fde24cbb05f5f3f2117f28cd9b1 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 3 Jul 2026 16:07:01 +0800 Subject: [PATCH 2/2] Append to env file --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d59c414..c61e625 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,7 +59,8 @@ jobs: # The formatting of the contents to include a blank newline is deliberate. - name: Define GitHub Secrets in .env.dist.testing run: | - cat > .env.dist.testing << 'ENVEOF' + cat >> .env.dist.testing <