diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 2ea8f0b..cc3f603 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runner_start=$(date +%s) created_at=$(curl -sf \ -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/runs?limit=100" \ | 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) if [ -n "$created_at" ]; then queued_epoch=$(date -d "$created_at" +%s) diff --git a/.forgejo/workflows/firebase-tests.yml b/.forgejo/workflows/firebase-tests.yml index 7022957..94a28d9 100644 --- a/.forgejo/workflows/firebase-tests.yml +++ b/.forgejo/workflows/firebase-tests.yml @@ -22,7 +22,7 @@ jobs: runner_start=$(date +%s) created_at=$(curl -sf \ -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/runs?limit=100" \ | 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) if [ -n "$created_at" ]; then queued_epoch=$(date -d "$created_at" +%s) @@ -75,7 +75,7 @@ jobs: runner_start=$(date +%s) created_at=$(curl -sf \ -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/runs?limit=100" \ | 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) if [ -n "$created_at" ]; then queued_epoch=$(date -d "$created_at" +%s) diff --git a/.forgejo/workflows/website.yml b/.forgejo/workflows/website.yml index ea67892..06ebd15 100644 --- a/.forgejo/workflows/website.yml +++ b/.forgejo/workflows/website.yml @@ -132,7 +132,7 @@ jobs: runner_start=$(date +%s) created_at=$(curl -sf \ -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/runs?limit=100" \ | 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) if [ -n "$created_at" ]; then queued_epoch=$(date -d "$created_at" +%s)