Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/dependency-diff-comment.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 11 additions & 3 deletions .github/workflows/dependency-diff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependency Diff
name: Dependency Diff (Analyze)

on:
pull_request:
Expand All @@ -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 }}
Loading