export d=/srv/example/tag function main() { mkdir -p $d local repo=root/example-$example forgejo-test-helper.sh push_workflow actions/example-$example $url root example-$example setup-forgejo $token local sha=$(forgejo-test-helper.sh branch_tip $url $repo main) local api=$url/api/v1 forgejo-curl.sh api_json --data-raw '{"tag_name":"v1.1","target":"'$sha'"}' $api/repos/$repo/tags forgejo-test-helper.sh wait_success $url $repo $sha test -f /srv/example/tag/contexts/push/github } main