mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-24785] Skip/Exit early from "Autofill BIT checks" workflow if there is no associated pull request or branch (#16034)
* check autofill bit checks workflow job requirements at the start of the job * add source branch name to executed workflow title
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
name: Autofill BIT checks
|
name: Autofill BIT checks
|
||||||
|
run-name: Autofill BIT checks on ${{ github.event.workflow_run.head_branch }} build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
@@ -11,10 +12,16 @@ jobs:
|
|||||||
name: Check files
|
name: Check files
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check for job requirements
|
||||||
|
if: ${{ !(github.event.workflow_run.pull_requests && github.event.workflow_run.pull_requests.length > 0 && github.event.workflow_run.head_branch) }}
|
||||||
|
run: |
|
||||||
|
gh run cancel ${{ github.run_id }}
|
||||||
|
gh run watch ${{ github.run_id }}
|
||||||
|
|
||||||
- name: Log in to Azure
|
- name: Log in to Azure
|
||||||
uses: bitwarden/gh-actions/azure-login@main
|
uses: bitwarden/gh-actions/azure-login@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user