-
-
Notifications
You must be signed in to change notification settings - Fork 427
36 lines (30 loc) · 1.05 KB
/
dependency-diff-comment.yml
File metadata and controls
36 lines (30 loc) · 1.05 KB
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
name: dependency-diff-comment
on:
workflow_run:
workflows: ['dependency-diff']
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.id }}
cancel-in-progress: true
permissions: {}
jobs:
dependency-diff-comment:
name: 💬 Dependency diff comment
runs-on: ubuntu-slim
if: github.event.workflow_run.conclusion == 'success'
permissions:
pull-requests: write # post dependency diff comments on pull requests
actions: read # download artifacts from dependency-diff runs
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@f825d5b5c5ce0a42dc46c47ec20de24460affcd8 # v1.5.0
with:
mode: comment-from-artifact
artifact-path: e18e-diff-result.json