Skip to content

Commit 2855213

Browse files
committed
✏️ add remote set-url
1 parent f7943a4 commit 2855213

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
REPO_PUSH_TOKEN: ${{ secrets.REPO_PUSH_TOKEN }}
4646
run: |
4747
git config --global user.name "github-actions[bot]"
48-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
48+
git config --global user.email "actions@github.com"
4949
5050
# Fetch and switch to main branch
5151
git fetch origin main
@@ -57,7 +57,8 @@ jobs:
5757
# Commit only if changes exist
5858
if ! git diff --cached --quiet; then
5959
git commit -m ":bookmark: Update metadata after release"
60-
git push https://x-access-token:${REPO_PUSH_TOKEN}@github.com/sciknoworg/OntoLearner.git main
60+
git remote set-url origin https://x-access-token:${PAT_TOKEN}@github.com/sciknoworg/OntoLearner.git
61+
git push origin main
6162
else
6263
echo "No changes to commit"
6364
fi

0 commit comments

Comments
 (0)