collection-updated #1612
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
name: Update the repo with the latest commit version | |
on: | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
types: [collection-updated] | |
jobs: | |
collection-updated-event: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.2] | |
laravel: [^9.0] | |
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.client_payload.ref }} | |
- run: echo ${{ github.event.client_payload.sha }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip | |
coverage: none | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-interaction --no-progress | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Updated collection | |
- uses: deployphp/action@v1 | |
with: | |
dep: deploy production | |
private-key: ${{ secrets.FORGE_PKEY }} |