From 5b1e73dfc9943e84786efcddd4761437f4671779 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Sun, 10 May 2026 19:54:49 +0100 Subject: [PATCH] chore: split dependency diff into two actions --- .github/workflows/dependency-diff-comment.yml | 27 +++++++++++++++++++ .github/workflows/dependency-diff.yml | 14 +++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/dependency-diff-comment.yml diff --git a/.github/workflows/dependency-diff-comment.yml b/.github/workflows/dependency-diff-comment.yml new file mode 100644 index 0000000..1ba09c6 --- /dev/null +++ b/.github/workflows/dependency-diff-comment.yml @@ -0,0 +1,27 @@ +name: Dependency Diff (Comment) + +on: + workflow_run: + workflows: ['Dependency Diff (Analyze)'] + types: + - completed + +jobs: + post_comment: + runs-on: ubuntu-latest + if: github.event.workflow_run.conclusion == 'success' + permissions: + pull-requests: write + actions: read + steps: + - name: Download Artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: e18e-diff-result + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Post Comment + uses: e18e/action-dependency-diff@5d3c6ac2ad2de2eaca1dc120c5accfd9590764b6 # v1.5.1 + with: + mode: comment-from-artifact + artifact-path: e18e-diff-result.json diff --git a/.github/workflows/dependency-diff.yml b/.github/workflows/dependency-diff.yml index 9c285d8..9d09842 100644 --- a/.github/workflows/dependency-diff.yml +++ b/.github/workflows/dependency-diff.yml @@ -1,4 +1,4 @@ -name: Dependency Diff +name: Dependency Diff (Analyze) on: pull_request: @@ -8,11 +8,19 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - pull-requests: write steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - - name: Create Diff + - name: Analyze Dependencies + id: analyze uses: e18e/action-dependency-diff@5d3c6ac2ad2de2eaca1dc120c5accfd9590764b6 # v1.5.1 + with: + mode: artifact + - name: Upload Artifact + if: steps.analyze.outputs.artifact-path + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: e18e-diff-result + path: ${{ steps.analyze.outputs.artifact-path }}