Skip to content

Commit 78f591c

Browse files
committed
fix for failing git authentication
1 parent 4dee350 commit 78f591c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release-post-merge.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,22 @@ permissions:
3737

3838
env:
3939
GITHUB_USER: "datavisyn-bot"
40-
GITHUB_TOKEN: ${{ secrets.DATAVISYN_BOT_REPO_TOKEN }}
40+
GITHUB_TOKEN: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
4141

4242
jobs:
4343
post_release:
4444
runs-on: ubuntu-22.04
4545
steps:
46+
- name: Git config
47+
run: |
48+
if [ -f ~/.gitconfig ]; then
49+
rm ~/.gitconfig
50+
touch ~/.gitconfig
51+
fi
52+
git config --global --replace-all url."https://[email protected]/".insteadOf ssh://[email protected]/
53+
git config --add --global url."https://$GITHUB_TOKEN@github".insteadOf https://github
54+
git config --add --global url."https://[email protected]/".insteadOf [email protected]:
55+
4656
- name: Checkout Repository
4757
uses: actions/checkout@v4
4858
with:

0 commit comments

Comments
 (0)