Template
ci: attempting to use manual git credential config
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user