Skip to content

Commit

Permalink
Autofix .png file conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandsullivan authored Jan 2, 2025
1 parent e06027b commit 193af8c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ucc-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ jobs:
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
# Ensure the latest changes from the remote branch are fetched
- name: Fetch latest changes and auto-resolve conflicts for .png files
run: |
git fetch origin ${{ github.head_ref || github.ref_name }}
git switch ${{ github.head_ref || github.ref_name }}
# Merge changes and resolve conflicts favoring the generated .png files
git merge origin/${{ github.head_ref || github.ref_name }} || true
git checkout --theirs -- benchmarks/*.png
git add benchmarks/*.png
# Commit and push results
- name: Commit and push results
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git switch ${{ github.head_ref || github.ref_name }}
git add benchmarks/*
git status
git commit -m "Update benchmark results" || echo "No changes to commit"
Expand Down

0 comments on commit 193af8c

Please sign in to comment.