mirror of
https://github.com/bitwarden/android.git
synced 2026-10-22 02:53:19 -05:00
fix: when label-pr job is skipped, enforce workflow doesn't log pr labels
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -7,6 +7,10 @@ on:
|
||||
description: "Pull Request Number"
|
||||
required: true
|
||||
type: number
|
||||
event-labels:
|
||||
description: "PR labels from the triggering event payload (logging only)"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ concurrency:
|
||||
|
||||
env:
|
||||
_PR_NUMBER: ${{ github.event.pull_request.number || inputs.pr-number }}
|
||||
_PR_EVENT_LABELS: ${{ toJSON(github.event.pull_request.labels) }} # for logging purposes
|
||||
|
||||
jobs:
|
||||
label-pr:
|
||||
@@ -110,3 +109,4 @@ jobs:
|
||||
uses: ./.github/workflows/sdlc-enforce-labels.yml
|
||||
with:
|
||||
pr-number: ${{ github.event.pull_request.number || inputs.pr-number }}
|
||||
event-labels: ${{ toJSON(github.event.pull_request.labels) }}
|
||||
Reference in new issue
Block a user