update RSI diff workflow to space-wizards fork
This commit is contained in:
12
.github/workflows/rsi-diff.yml
vendored
12
.github/workflows/rsi-diff.yml
vendored
@@ -18,10 +18,10 @@ jobs:
|
|||||||
uses: Ana06/get-changed-files@v1.2
|
uses: Ana06/get-changed-files@v1.2
|
||||||
with:
|
with:
|
||||||
format: 'space-delimited'
|
format: 'space-delimited'
|
||||||
|
|
||||||
- name: Diff changed RSIs
|
- name: Diff changed RSIs
|
||||||
id: diff
|
id: diff
|
||||||
uses: mirrorcult/RSIDiffBot@v1.0
|
uses: space-wizards/RSIDiffBot@v1.1
|
||||||
with:
|
with:
|
||||||
modified: ${{ steps.files.outputs.modified }}
|
modified: ${{ steps.files.outputs.modified }}
|
||||||
removed: ${{ steps.files.outputs.removed }}
|
removed: ${{ steps.files.outputs.removed }}
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
basesha: ${{ github.event.pull_request.base.sha }}
|
basesha: ${{ github.event.pull_request.base.sha }}
|
||||||
headname: ${{ github.event.pull_request.head.repo.full_name }}
|
headname: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
headsha: ${{ github.event.pull_request.head.sha }}
|
headsha: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Potentially find comment
|
- name: Potentially find comment
|
||||||
uses: peter-evans/find-comment@v1
|
uses: peter-evans/find-comment@v1
|
||||||
id: fc
|
id: fc
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
issue-number: ${{ github.event.number }}
|
issue-number: ${{ github.event.number }}
|
||||||
comment-author: 'github-actions[bot]'
|
comment-author: 'github-actions[bot]'
|
||||||
body-includes: RSI Diff Bot
|
body-includes: RSI Diff Bot
|
||||||
|
|
||||||
- name: Create comment if it doesn't exist
|
- name: Create comment if it doesn't exist
|
||||||
if: steps.fc.outputs.comment-id == ''
|
if: steps.fc.outputs.comment-id == ''
|
||||||
uses: peter-evans/create-or-update-comment@v1
|
uses: peter-evans/create-or-update-comment@v1
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
issue-number: ${{ github.event.number }}
|
issue-number: ${{ github.event.number }}
|
||||||
body: |
|
body: |
|
||||||
${{ steps.diff.outputs.summary-details }}
|
${{ steps.diff.outputs.summary-details }}
|
||||||
|
|
||||||
- name: Update comment if it exists
|
- name: Update comment if it exists
|
||||||
if: steps.fc.outputs.comment-id != ''
|
if: steps.fc.outputs.comment-id != ''
|
||||||
uses: peter-evans/create-or-update-comment@v1
|
uses: peter-evans/create-or-update-comment@v1
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
edit-mode: replace
|
edit-mode: replace
|
||||||
body: |
|
body: |
|
||||||
${{ steps.diff.outputs.summary-details }}
|
${{ steps.diff.outputs.summary-details }}
|
||||||
|
|
||||||
- name: Update comment to read that it has been edited
|
- name: Update comment to read that it has been edited
|
||||||
if: steps.fc.outputs.comment-id != ''
|
if: steps.fc.outputs.comment-id != ''
|
||||||
uses: peter-evans/create-or-update-comment@v1
|
uses: peter-evans/create-or-update-comment@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user