From b045890f0f0d61807fc1053df6655575514d4a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Wed, 6 Nov 2024 22:34:32 +0100 Subject: [PATCH] Add github action to show composer.lock diff on update (#73) --- .github/workflows/composer.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/composer.yml diff --git a/.github/workflows/composer.yml b/.github/workflows/composer.yml new file mode 100644 index 0000000..42eab9c --- /dev/null +++ b/.github/workflows/composer.yml @@ -0,0 +1,24 @@ +name: Composer Diff +on: + pull_request_target: + types: + - opened + - synchronize + - reopened +permissions: + pull-requests: write + contents: read +jobs: + comment-composer-lock-diff: + name: Comment composer.lock diff + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + - name: Comment composer.lock diff + uses: WyriHaximus/github-action-composer.lock-diff@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}