Skip to content

Commit 116fa65

Browse files
[ci] Update guard condition in publish-performance-history to simplify testing scenarios
1 parent 0e16384 commit 116fa65

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build-and-run.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,14 @@ jobs:
534534

535535
# ── Separate job: collect all matrix metrics and update history ───────────────
536536
publish-performance-history:
537-
if: |
538-
github.repository == 'beehive-lab/GPULlama3.java' &&
539-
github.event_name == 'push' &&
540-
github.ref == 'refs/heads/main'
537+
# Guard: only commit history on real pushes to main, not on PRs or forks.
538+
# Prevents duplicate entries from PR runs and avoids push-permission errors on forks.
539+
# Full guard (restore after testing):
540+
# if: |
541+
# github.repository == 'beehive-lab/GPULlama3.java' &&
542+
# github.event_name == 'push' &&
543+
# github.ref == 'refs/heads/main'
544+
if: github.repository == 'beehive-lab/GPULlama3.java'
541545
runs-on: [self-hosted]
542546
needs: build-and-run
543547
timeout-minutes: 15

0 commit comments

Comments
 (0)