Skip to content

Commit

Permalink
Tweak ci
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 6, 2024
1 parent 0e54a98 commit ed8dcdf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/fetch-wxr-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ jobs:
echo "Normalizing $FILE"
ASSETS_DIR=$(dirname $FILE)/wxr-assets
mkdir -p $ASSETS_DIR
php /tmp/preprocess-wxr.phar --wxr=$FILE --downloads-path=$ASSETS_DIR --new-assets-prefix=https://raw.githubusercontent.com/wordpress/blueprints/${{ github.head_ref }}/$ASSETS_DIR\
> FILE.tmp
if [ -s FILE.tmp ]; then
mv FILE.tmp $FILE
php /tmp/preprocess-wxr.phar \
--wxr=$FILE \
--downloads-path=$ASSETS_DIR \
--new-assets-prefix=https://raw.githubusercontent.com/wordpress/blueprints/${{ github.head_ref }}/$ASSETS_DIR \
> /tmp/wxr.swap
if [ -s /tmp/wxr.swap ]; then
mv /tmp/wxr.swap $FILE
else
echo "No changes made to $FILE"
fi
Expand Down

0 comments on commit ed8dcdf

Please sign in to comment.