Optimize images (#24959)
* Update optimize-images.yml * Optimize images Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
committed by
GitHub
parent
5a240c94aa
commit
c028121e65
5
.github/workflows/optimize-images.yml
vendored
5
.github/workflows/optimize-images.yml
vendored
@@ -37,7 +37,8 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "Make a new branch"
|
||||
git checkout -b "optimize-images-$(date +'%Y%m%d%H%M%S')"
|
||||
BRANCH="optimize-images-$(date +'%Y%m%d%H%M%S')"
|
||||
git checkout -b $BRANCH
|
||||
|
||||
echo "Make a commit"
|
||||
git config user.name github-actions
|
||||
@@ -46,7 +47,7 @@ jobs:
|
||||
git commit --message="Optimize images"
|
||||
|
||||
echo "Push up changes"
|
||||
git push
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
echo "Open a pull request"
|
||||
gh pr create --title "Optimize images" --body "Optimize images"
|
||||
|
||||
Reference in New Issue
Block a user