dependency-diff-comment #236
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |