Skip to content

Commit 76a439a

Browse files
hobbytpclaude
andcommitted
fix: Update image optimization workflow to push to current branch
- Change git push from main to HEAD to work with feature branches - Fixes 'src refspec main does not match any' error - Ensures image optimization works on all branches 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 63474af commit 76a439a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/image-optimization.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ jobs:
8888
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
8989
run: |
9090
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
91-
git push origin main
91+
git push origin HEAD
9292
echo "推送优化后的图片到仓库"

0 commit comments

Comments
 (0)