fix(ci): fix YAML parse errors in deploy, firebase-tests, website workflows
The multi-line python3 -c blocks had unindented Python code that terminated YAML block scalars. Inline as one-liners. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
cc88491cec
commit
a438d80e67
@@ -24,14 +24,7 @@ jobs:
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
@@ -174,14 +167,7 @@ for r in data.get('workflow_runs', []):
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
@@ -232,14 +218,7 @@ for r in data.get('workflow_runs', []):
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
@@ -284,14 +263,7 @@ for r in data.get('workflow_runs', []):
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
@@ -341,14 +313,7 @@ for r in data.get('workflow_runs', []):
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
|
|||||||
@@ -23,14 +23,7 @@ jobs:
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
@@ -83,14 +76,7 @@ for r in data.get('workflow_runs', []):
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
|
|||||||
@@ -27,14 +27,7 @@ jobs:
|
|||||||
created_at=$(curl -sf \
|
created_at=$(curl -sf \
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/tasks?limit=100" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json;data=json.load(sys.stdin);rs=[r for r in data.get('workflow_runs',[]) if r.get('run_number')==$RUN_NUMBER];print(rs[0]['created_at'] if rs else '')" 2>/dev/null)
|
||||||
import sys, json
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for r in data.get('workflow_runs', []):
|
|
||||||
if r.get('run_number') == $RUN_NUMBER:
|
|
||||||
print(r['created_at'])
|
|
||||||
break
|
|
||||||
" 2>/dev/null)
|
|
||||||
if [ -n "$created_at" ]; then
|
if [ -n "$created_at" ]; then
|
||||||
queued_epoch=$(date -d "$created_at" +%s)
|
queued_epoch=$(date -d "$created_at" +%s)
|
||||||
wait_seconds=$((runner_start - queued_epoch))
|
wait_seconds=$((runner_start - queued_epoch))
|
||||||
|
|||||||
Reference in New Issue
Block a user