Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/migrate-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ jobs:
--no-dry-run \
--base-ref HEAD~1

- name: Commit updated YAMLs and remove temporary assets (push to main)
- name: Amend commit – update YAMLs and remove tmp assets (push to main)
if: github.event_name == 'push'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git rm -rf --ignore-unmatch data/tmp/
git add -u data/materials/
if git diff --staged --quiet; then
echo "No changes to commit"
echo "No changes to amend"
else
git commit -m "chore: migrate images to GCS and remove temporary assets [skip ci]"
git commit --amend --no-edit
n=0
until git pull --rebase && git push; do
until git push --force-with-lease; do
n=$((n+1))
if [ $n -ge 3 ]; then
echo "Push failed after 3 attempts"
Expand Down
2 changes: 1 addition & 1 deletion data/materials/generic/pla-army-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ primary_color:
color_rgba: '#1f6b20ff'
secondary_colors: []
photos:
- url: https://files.openprinttag.org/generic/pla-army-green/20260205110532.jpg
- url: /tmp/assets/generic/pla-army-green/20260205110600.jpg
type: unspecified
properties: {}
uuid: c6753d1b-4618-505a-aa5a-0676e55e9545
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.