Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/backport-auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,20 +284,24 @@ jobs:
// Only hand work to the report step when there is something to say;
// a "none" outcome leaves the output unset so that step is skipped.
// The output is named `decisions`, not `result`: actions/github-script
// always writes the script's return value to an output called `result`
// after the body runs, which would clobber an explicit setOutput of the
// same name (this script returns nothing, so that would blank it out).
const result = await decide();
if (result.mode !== "none") {
core.setOutput("result", JSON.stringify(result));
core.setOutput("decisions", JSON.stringify(result));
}
# Report step: runs under the default GITHUB_TOKEN so the review request
# and the report comment are authored by github-actions[bot] and do not
# retrigger comment-/review-driven workflows. It only touches the PR when
# the label step handed it something to say.
- name: Report backport decisions
if: ${{ steps.label.outputs.result }}
if: ${{ steps.label.outputs.decisions }}
uses: actions/github-script@v9
env:
RESULT: ${{ steps.label.outputs.result }}
RESULT: ${{ steps.label.outputs.decisions }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
Loading