#!/bin/bash -e # https://github.com/go-gitea/gitea/blob/47bf8363102b95a240fc6a571d608567ff6b212a/routers/api/actions/artifacts.go CURL=(curl -H "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN") API="$GITHUB_SERVER_URL/api/actions_pipeline/_apis/pipelines/workflows/$GITHUB_RUN_ID/artifacts?api-version=6.0-preview" JSON="$(cat <