mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-12 22:10:25 +00:00
fix: experimental releases are not being copied to forgejo-experimental (#10583)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10583 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net> Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
This commit is contained in:
parent
49c3b3f70e
commit
e3b4c960da
1 changed files with 7 additions and 4 deletions
|
|
@ -227,11 +227,14 @@ jobs:
|
|||
curl -sS -X DELETE $url/api/v1/repos/forgejo-experimental/forgejo/releases/tags/$tag > /dev/null
|
||||
curl -sS -X DELETE $url/api/v1/repos/forgejo-experimental/forgejo/tags/$tag > /dev/null
|
||||
fi
|
||||
# actions/checkout@v3 sets http.https://codeberg.org/.extraheader with the automatic token.
|
||||
# Get rid of it so it does not prevent using the token that has write permissions
|
||||
git config --local --unset http.https://codeberg.org/.extraheader
|
||||
# actions/checkout@v6 sets http.https://codeberg.org/.extraheader with the automatic token. Get rid of it so
|
||||
# it does not prevent using the token that has write permissions. As of @v6, it is stored in
|
||||
# /tmp/git-credentials-(uuid).config and included in the repo via
|
||||
# includeif.gitdir:...=/tmp/git-credentials-(uuid).config. Since we don't need these credentials anymore we
|
||||
# can just remove the generated config file.
|
||||
rm /tmp/git-credentials-*
|
||||
if test -f .git/shallow ; then
|
||||
echo "unexptected .git/shallow file is present"
|
||||
echo "unexpected .git/shallow file is present"
|
||||
echo "it suggests a checkout --depth X was used which may prevent pushing the commit"
|
||||
echo "it happens when actions/checkout is called without depth: 0"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue