Skip to content

Commit 76ece2b

Browse files
hobbytpclaude
andcommitted
fix: Use proper refname in image optimization workflow
- Change from 'HEAD' to '${{ github.ref_name }}' for proper Git reference - Fixes 'not a full refname' error - Ensures push works correctly with feature branches - Uses GitHub Actions built-in ref_name variable 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 76a439a commit 76ece2b

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 HEAD
91+
git push origin ${{ github.ref_name }}
9292
echo "推送优化后的图片到仓库"

0 commit comments

Comments
 (0)