Skip to content

Commit 734ef4e

Browse files
author
AREMA Ontology Bot
committed
ci: fix git head issue
1 parent 9052980 commit 734ef4e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
- name: 🧾 Checkout repository
8787
uses: actions/checkout@v4
8888
with:
89+
ref: ${{ github.event.repository.default_branch }}
8990
fetch-depth: 0 # Full history for proper git operations
9091

9192
- name: 📥 Download validated ontology
@@ -140,17 +141,14 @@ jobs:
140141
git config user.name "github-actions[bot]"
141142
git config user.email "github-actions[bot]@users.noreply.github.com"
142143
143-
# Pull latest changes to avoid race conditions
144-
git pull --rebase origin ${{ github.ref_name }} || true
145-
146144
# Add both docs and the ontology file (updates src/ontology/)
147145
git add docs src/ontology/AREMA-ontology.ttl
148146
149147
# Only commit if there are changes
150148
if ! git diff --cached --quiet; then
151149
RELEASE_TAG="${{ github.event.release.tag_name || inputs.release_tag || 'manual' }}"
152150
git commit -m "Update ontology and docs from release ${RELEASE_TAG} [skip ci]"
153-
git push
151+
git push origin ${{ github.event.repository.default_branch }}
154152
echo "✅ Documentation and ontology committed"
155153
else
156154
echo "ℹ️ No changes to commit"

0 commit comments

Comments
 (0)