-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from buckaroo-it/develop
v3.7.0
- Loading branch information
Showing
122 changed files
with
1,602 additions
and
2,851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,43 @@ | ||
name: Embed icons automatically | ||
name: Icon update | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
jobs: | ||
icons_embedding: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Embed icons automatically | ||
- name: Clone media repository | ||
run: | | ||
ls -l | ||
mkdir ~/tmp | ||
cd ~/tmp | ||
ls -l | ||
git clone https://github.com/buckaroo-it/Media | ||
cd Media | ||
ls -l | ||
echo ${{ github.workspace }}/library/buckaroo_images/svg | ||
mkdir -p ${{ github.workspace }}/library/buckaroo_images/svg | ||
cp "Payment methods/SVG/AfterPay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Alipay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Apple Pay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ApplePay.svg | ||
cp "Payment methods/SVG/Bancontact.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Belfius.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Billink.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/CBC.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/CreditClick.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Creditcards.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/EPS.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Giftcards.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Giropay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/INGHomePay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/In3.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/KBC.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Klarna.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/PayPal.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/PayPerEmail.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Payconiq.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Przelewy24.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/SEPA-directdebit.svg" ${{ github.workspace }}/library/buckaroo_images/svg/SEPAdirectdebit.svg | ||
cp "Payment methods/SVG/SEPACreditTransfer.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Sofort.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Tinka.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/Trustly.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cp "Payment methods/SVG/WeChat Pay.svg" ${{ github.workspace }}/library/buckaroo_images/svg/WeChatPay.svg | ||
cp "Payment methods/SVG/iDEAL.svg" ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
ls -l ${{ github.workspace }}/library/buckaroo_images/svg | ||
cd ${{ github.workspace }} | ||
git config --global user.name "GitHub Actions Bot" | ||
git config --global user.email "[email protected]" | ||
git fetch | ||
git add --all library/buckaroo_images/svg/ | ||
if git commit -m 'Embed icons automatically' library/buckaroo_images/svg; then | ||
echo ${GITHUB_REF} | ||
git push origin HEAD:${GITHUB_REF} | ||
fi | ||
git clone https://github.com/buckaroo-it/Media | ||
ls -lah | ||
- name: Rename all files to lowercase | ||
run: | | ||
cd Media | ||
cp ${{ github.workspace }}/.github/workflows/rename-icons.php ${{ github.workspace }}/Media/rename-icons.php | ||
php ./rename-icons.php | ||
- name: Copy payment method icons | ||
run: | | ||
cd Media | ||
cp -R "Payment methods/SVG/." ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
cd ${{ github.workspace }}/library/buckaroo_images/svg/ | ||
rm -f wechatpay.svg | ||
rm -f vouchers.svg | ||
rm -f trustly.svg | ||
rm -f tinka.svg | ||
rm -f alipay.svg | ||
rm -f buckaroovoucher.svg | ||
- name: Copy creditcards icons | ||
run: | | ||
cd Media | ||
cp -R "Creditcard issuers/SVG/." ${{ github.workspace }}/library/buckaroo_images/creditcards/ | ||
- name: Cleanup | ||
run: | | ||
rm -rd Media | ||
- name: Create commit if we have changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply logo changes from media repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
$path = realpath('./'); | ||
|
||
$di = new RecursiveIteratorIterator( | ||
new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS), | ||
RecursiveIteratorIterator::LEAVES_ONLY | ||
); | ||
|
||
foreach ($di as $name => $fio) { | ||
$newname = $fio->getPath() . DIRECTORY_SEPARATOR . strtolower(str_replace(" ","",str_replace("&","-",$fio->getFilename()))); | ||
echo $newname, "\r\n"; | ||
rename($name, $newname); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.