Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed May 31, 2024
2 parents 59f7479 + 42e88ab commit a19e4ff
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/composer_diff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Composer Diff

on:
push:
paths:
- 'composer.lock'
pull_request:
paths:
- 'composer.lock'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate composer diff
id: composer_diff
uses: IonBazan/composer-diff-action@v1

- uses: marocchino/sticky-pull-request-comment@v2
if: ${{ steps.composer_diff.outputs.composer_diff_exit_code != 0 }}
with:
header: composer-diff
message: |
<details>
<summary>Composer package changes</summary>
${{ steps.composer_diff.outputs.composer_diff }}
</details>

0 comments on commit a19e4ff

Please sign in to comment.