diff --git a/.gitea/workflows/release-plz.yml b/.gitea/workflows/release-plz.yml index 7240a06..75fdd68 100644 --- a/.gitea/workflows/release-plz.yml +++ b/.gitea/workflows/release-plz.yml @@ -74,17 +74,12 @@ jobs: - *install-cargo-semver - *install-release-plz - - name: Configure git remote with token + - name: install git + + - name: Fill Credentials run: | - OWNER="${GITEA_REPOSITORY_OWNER:-${GITEA_REPO_OWNER}}" - REPO="${GITEA_REPOSITORY_NAME:-${GITEA_REPO_NAME}}" - HOST="${GITEA_HOST:-gitea.melfely.com}" - git remote set-url origin "https://git:${GITEA_TOKEN}@${HOST}/${OWNER}/${REPO}.git" - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - GITEA_HOST: ${{ secrets.GITEA_HOST }} - GITEA_REPOSITORY_OWNER: ${{ gitea.repository.owner }} - GITEA_REPOSITORY_NAME: ${{ gitea.repository.name }} + git config --global credential.helper store + echo "https://ci-bot:${{ secret.GITEA_TOKEN }}@gitea.melfely.com" > ~/.git-credentials - name: Run release-plz release-pr run: |