mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:35:40 +00:00
[CI] Forgejo Actions based release process (squash) use forgejo-curl.sh
This commit is contained in:
parent
d072525b35
commit
6dc0f6a3dc
|
@ -55,13 +55,13 @@ jobs:
|
||||||
cp -a .forgejo/actions $dir/.forgejo/actions
|
cp -a .forgejo/actions $dir/.forgejo/actions
|
||||||
cp $dir/Dockerfile $dir/Dockerfile.rootless
|
cp $dir/Dockerfile $dir/Dockerfile.rootless
|
||||||
|
|
||||||
forgejo-test-helper.sh push $dir $url root forgejo |& tee $dir/pushed
|
forgejo-test-helper.sh push $dir $url root forgejo
|
||||||
eval $(grep '^sha=' < $dir/pushed)
|
sha=$(forgejo-test-helper.sh branch_tip $url root/forgejo main)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Push a tag to trigger the release workflow and wait for it to complete
|
# Push a tag to trigger the release workflow and wait for it to complete
|
||||||
#
|
#
|
||||||
forgejo-test-helper.sh api POST $url repos/root/forgejo/tags ${{ steps.forgejo.outputs.token }} --data-raw '{"tag_name": "v'$version'", "target": "'$sha'"}'
|
forgejo-curl.sh api_json --data-raw '{"tag_name": "v'$version'", "target": "'$sha'"}' $url/api/v1/repos/root/forgejo/tags
|
||||||
LOOPS=180 forgejo-test-helper.sh wait_success "$url" root/forgejo $sha
|
LOOPS=180 forgejo-test-helper.sh wait_success "$url" root/forgejo $sha
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue