workflows: bump pull request sync action and forward actor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -26,11 +26,13 @@ jobs:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
LABEL_ADDED: ${{ github.event.action == 'labeled' && github.event.label.name || '' }}
|
||||
REVIEW_STATE: ${{ github.event.review.state }}
|
||||
ACTOR: ${{ github.actor }}
|
||||
run: |
|
||||
mkdir -p ./context
|
||||
echo "$PR_NUMBER" > ./context/pr-number
|
||||
echo "$LABEL_ADDED" > ./context/label-added
|
||||
echo "$REVIEW_STATE" > ./context/review-state
|
||||
echo "$ACTOR" > ./context/actor
|
||||
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
|
||||
@@ -36,10 +36,11 @@ jobs:
|
||||
core.setOutput('pr-number', fs.readFileSync('./context/pr-number', 'utf8').trim());
|
||||
core.setOutput('label-added', fs.readFileSync('./context/label-added', 'utf8').trim());
|
||||
core.setOutput('review-state', fs.readFileSync('./context/review-state', 'utf8').trim());
|
||||
core.setOutput('actor', fs.readFileSync('./context/actor', 'utf8').trim());
|
||||
|
||||
- name: Backstage PR automation
|
||||
if: steps.download.outcome == 'success'
|
||||
uses: backstage/actions/pr-automation@c0110c14def021f64b4774335b0d55ac705b9318 # v0.7.1
|
||||
uses: backstage/actions/pr-automation@9f84cea3f08046bbc53dcf8d348a892f05687ce8 # v0.7.2
|
||||
with:
|
||||
app-id: ${{ secrets.BACKSTAGE_GOALIE_APPLICATION_ID }}
|
||||
private-key: ${{ secrets.BACKSTAGE_GOALIE_PRIVATE_KEY }}
|
||||
@@ -49,3 +50,4 @@ jobs:
|
||||
pr-number: ${{ steps.context.outputs.pr-number }}
|
||||
label-added: ${{ steps.context.outputs.label-added }}
|
||||
review-state: ${{ steps.context.outputs.review-state }}
|
||||
actor: ${{ steps.context.outputs.actor }}
|
||||
|
||||
Reference in New Issue
Block a user