Skip to content

Commit

Permalink
Merge pull request #5795 from Laravel-Lang/andrey-helldar-patch-1
Browse files Browse the repository at this point in the history
Added automatic key update for Laravel Spark Stripe and Paddle
  • Loading branch information
andrey-helldar authored Feb 13, 2025
2 parents 24b7968 + bace583 commit a8fec53
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion .github/workflows/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Install dependencies
run: |
composer global require dragon-code/codestyler
composer config repositories.nova composer ${{ secrets.LARAVEL_NOVA_REPOSITORY }}
composer config repositories.nova composer ${{ secrets.LARAVEL_REPOSITORY }}
composer require laravel/nova:^${{ matrix.nova.version }}
- name: Copy localization files
Expand Down Expand Up @@ -173,6 +173,61 @@ jobs:
--ver=${{ matrix.version }} \
--copy=lang
spark:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
package: [ "stripe", "paddle" ]

name: spark ${{ matrix.package }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none

- name: Git setup
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install dependencies
run: |
composer global require dragon-code/codestyler
composer config repositories.spark-stripe composer ${{ secrets.LARAVEL_REPOSITORY }}
composer require laravel/spark-${{ matrix.package }}
- name: Copy localization files
run: |
cp vendor/laravel/spark-${{ matrix.package }}/stubs/en.json source/nova/spark/spark-${{ matrix.package }}.json -f
- name: Clean up
run: |
composer remove laravel/spark-${{ matrix.package }}
git checkout HEAD -- composer.json
- name: Code-Style
run: codestyle

- name: Create a Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: projects/patch
branch-suffix: random
delete-branch: true
add-paths: source/spark/spark-${{ matrix.package }}.json
title: "[source]: Updated Laravel Spark ${{ matrix.package }} keys"
commit-message: 🗝️ Updated Laravel Spark ${{ matrix.package }} keys
body: Updated keys for Laravel Spark ${{ matrix.package }} 💪

ui:
uses: Laravel-Lang/.github/.github/workflows/download.yml@main
strategy:
Expand Down

0 comments on commit a8fec53

Please sign in to comment.