diff --git a/.github/workflows/composer_diff.yaml b/.github/workflows/composer_diff.yaml new file mode 100644 index 0000000..3dbe7a4 --- /dev/null +++ b/.github/workflows/composer_diff.yaml @@ -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: | +
+ Composer package changes + + ${{ steps.composer_diff.outputs.composer_diff }} + +