Skip to content

Install SVN if needed #34

Install SVN if needed

Install SVN if needed #34

name: Composer and NPM Package Diff
on:
pull_request:
paths:
- 'composer.lock'
# - 'package-lock.json'
permissions:
contents: write
pull-requests: write
jobs:
composer-diff:
name: Composer Diff
runs-on: ubuntu-latest
steps:
- name: Checkout
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: |
<strong>Composer Changes</strong>
${{ steps.composer_diff.outputs.composer_diff }}
# Removing because the workflow fails for some unknown reason, see https://github.com/pantheon-systems/pantheon-advanced-page-cache/actions/runs/9228002744/job/25391128483
# There's no support for this action, so we might need to build something new.
# npm-diff:
# name: NPM Lockfile Diff
# runs-on: ubuntu-latest
# continue-on-error: true
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Compile NPM packages
# run: npm ci
# - name: NPM Lockfile Changes
# uses: codepunkt/npm-lockfile-changes@main
# with:
# token: ${{ github.token }}