Skip to content

Commit

Permalink
fix for failing git authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Dec 1, 2024
1 parent 4dee350 commit 78f591c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,22 @@ permissions:

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

jobs:
post_release:
runs-on: ubuntu-22.04
steps:
- name: Git config
run: |
if [ -f ~/.gitconfig ]; then
rm ~/.gitconfig
touch ~/.gitconfig
fi
git config --global --replace-all url."https://[email protected]/".insteadOf ssh://[email protected]/
git config --add --global url."https://$GITHUB_TOKEN@github".insteadOf https://github
git config --add --global url."https://[email protected]/".insteadOf [email protected]:
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 78f591c

Please sign in to comment.