Skip to content

Commit 6258dcd

Browse files
Merge pull request #20 from codebuilderinc/fix/firebase-build-init
[codex] Update workflows and fix Firebase runtime build initialization
2 parents 72c4115 + c46591a commit 6258dcd

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

.codex

Whitespace-only changes.

.github/workflows/cleanup-gh-pages-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: 🔍 Checkout gh-pages branch
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
ref: gh-pages
2020
fetch-depth: 1

.github/workflows/cloudflare-pages-runtime.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: 🔍 Checkout repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
- name: 🔒 Verify Google services secret exists
2727
run: |
@@ -33,9 +33,13 @@ jobs:
3333
- name: 📁 Set Google services environment variable
3434
run: |
3535
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > /tmp/google-services.json
36-
echo "GOOGLE_SERVICES_JSON<<EOF" >> $GITHUB_ENV
37-
cat /tmp/google-services.json >> $GITHUB_ENV
38-
echo "EOF" >> $GITHUB_ENV
36+
37+
if ! jq -c . /tmp/google-services.json > /tmp/google-services.compact.json; then
38+
echo "❌ GOOGLE_SERVICES_JSON_BASE64 did not decode to valid JSON"
39+
exit 1
40+
fi
41+
42+
printf 'GOOGLE_SERVICES_JSON=%s\n' "$(cat /tmp/google-services.compact.json)" >> "$GITHUB_ENV"
3943
env:
4044
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4145

.github/workflows/cloudflare-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: 🔍 Checkout repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
- name: 📦 Install pnpm
2727
run: npm install -g pnpm@10

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: '🔍 Checkout Code'
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
submodules: 'recursive'
1919

.github/workflows/nextjs-static-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: 🔍 Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030

0 commit comments

Comments
 (0)