-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (36 loc) · 1.17 KB
/
lock-file-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lock File Changes
on: [pull_request]
jobs:
lock_file_changes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# pnpm-lock.yaml
# TODO: Find a solution for getting pnpm-lock.yaml changes.
# composer.lock
- name: Generate composer diff
id: composer_diff
uses: IonBazan/composer-diff-action@v1
with:
base:
${{ github.event.pull_request.base.sha
}}:apps/silverback-drupal/composer.lock
target: apps/silverback-drupal/composer.lock
- uses: marocchino/sticky-pull-request-comment@v2
if: ${{ steps.composer_diff.outputs.composer_diff }}
with:
header: composer-diff
message: |
## `composer.lock` changes
<details>
<summary>Click to toggle table visibility</summary>
${{ steps.composer_diff.outputs.composer_diff }}
</details>
- uses: marocchino/sticky-pull-request-comment@v2
if: ${{ steps.composer_diff.outputs.composer_diff == 0 }}
with:
header: composer-diff
delete: true