From e3b4c960dad322e88e5e496fd6011d26f17f74d5 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Fri, 26 Dec 2025 09:26:28 +0100 Subject: [PATCH] fix: experimental releases are not being copied to forgejo-experimental (#10583) Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10583 Reviewed-by: Michael Kriese Co-authored-by: Mathieu Fenniak Co-committed-by: Mathieu Fenniak --- .forgejo/workflows/build-release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml index 25d93eb6bc..4a0c402b4a 100644 --- a/.forgejo/workflows/build-release.yml +++ b/.forgejo/workflows/build-release.yml @@ -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