workflows: bump pull request sync action and forward actor

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-04 00:29:09 +01:00
parent 8b6e7d9e21
commit a4ec249eae
2 changed files with 5 additions and 1 deletions
@@ -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:
+3 -1
View File
@@ -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 }}