Skip to content

Commit b6bcb69

Browse files
committed
🐛 repo push
1 parent a819812 commit b6bcb69

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ jobs:
4141
4242
# Commit metadata back to repo
4343
- name: Commit and push metadata
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.REPO_PUSH_TOKEN }}
4446
run: |
4547
git config --global user.name "github-actions[bot]"
4648
git config --global user.email "github-actions[bot]@users.noreply.github.com"
47-
48-
# Switch to main branch
49-
git fetch origin main
50-
git checkout main
51-
52-
# Add metadata and commit only if changes exist
49+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/sciknoworg/OntoLearner.git
5350
git add metadata/
5451
if ! git diff --cached --quiet; then
5552
git commit -m ":bookmark: Update metadata after release"

0 commit comments

Comments
 (0)