File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 : |
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1313
1414 steps :
1515 - name : ' 🔍 Checkout Code'
16- uses : actions/checkout@v4
16+ uses : actions/checkout@v5
1717 with :
1818 submodules : ' recursive'
1919
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments