#!/bin/bash -e # https://codeberg.org/forgejo/forgejo/src/commit/bf80842b4f14a075c6840b6fe37d59b5ac3fac44/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 <