Skip to content

Commit

Permalink
Merge pull request #25 from Emilia-Capital/jdv/update-wpcs
Browse files Browse the repository at this point in the history
Update WPCS to 3.1.0
  • Loading branch information
aristath authored Apr 4, 2024
2 parents d555df5 + 67944b0 commit 269a2ea
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 39 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/composer-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Composer Diff
on:
pull_request:
paths:
- 'composer.lock'
jobs:
composer-diff:
name: Composer Diff
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Required to make it possible to compare with PR base branch

- name: Generate composer diff
id: composer_diff # To reference the output in comment
uses: IonBazan/composer-diff-action@v1

- uses: marocchino/sticky-pull-request-comment@v2
# An empty diff result will break this action.
if: ${{ steps.composer_diff.outputs.composer_diff_exit_code != 0 }}
with:
header: composer-diff # Creates a collapsed comment with the report
message: |
<details>
<summary>Composer package changes</summary>
${{ steps.composer_diff.outputs.composer_diff }}
</details>
131 changes: 92 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 269a2ea

Please sign in to comment.