Skip to content

Merge pull request #223 from buckaroo-it/BP-3490-Add-a-Bancontact-opt… #326

Merge pull request #223 from buckaroo-it/BP-3490-Add-a-Bancontact-opt…

Merge pull request #223 from buckaroo-it/BP-3490-Add-a-Bancontact-opt… #326

Workflow file for this run

name: Icon update
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone media repository
run: |
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 "${{ github.workspace }}/Media/Payment methods/SVG/"
rm -f paylink.svg paybybank.svg pos.svg tinka.svg pos-nfc.svg riverty.svg
cd ${{ github.workspace }}/Media
cp -R "Payment methods/SVG/." ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/
cp "Payment methods/SVG/creditcards.svg" ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards.svg
- name: Copy payment method icons for admin area
run: |
cd ${{ github.workspace }}/Media
cp -R "Payment methods/SVG/." ${{ github.workspace }}/src/Resources/public/administration/static/
- name: Copy creditcards icons
run: |
cd "${{ github.workspace }}/Media/Creditcard issuers/SVG/"
mv cartebleue.svg cartebleuevisa.svg
rm -f mastercard_debit.svg
cd ${{ github.workspace }}/Media
cp -R "Creditcard issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards/
- name: Copy payment issuers icons
run: |
cd Media
cp -R "iDEAL bank issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/
rm -f ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/handelsbanken.svg
- 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