mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Remove workflow run event trigger
This commit is contained in:
42
.github/workflows/build-desktop.yml
vendored
42
.github/workflows/build-desktop.yml
vendored
@@ -19,14 +19,6 @@ on:
|
|||||||
- '.github/workflows/build-desktop.yml'
|
- '.github/workflows/build-desktop.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_run:
|
|
||||||
workflows: [Build Browser]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
- 'rc'
|
|
||||||
- 'hotfix-rc/**'
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -619,23 +611,14 @@ jobs:
|
|||||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Download artifact from workflow_run event
|
|
||||||
if: ${{ github.event_name == 'workflow_run' }}
|
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
|
||||||
with:
|
|
||||||
workflow: build-browser.yml
|
|
||||||
workflow_conclusion: success
|
|
||||||
run_id: ${{ github.event.workflow_run.id }}
|
|
||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
if: ${{ contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: contains(github.ref, 'hotfix-rc')
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
|
|
||||||
- name: Download artifact from hotfix-rc
|
- name: Download artifact from hotfix-rc
|
||||||
if: ${{ contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: contains(github.ref, 'hotfix-rc')
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
@@ -644,7 +627,7 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
path: ${{ github.workspace }}/browser-build-artifacts
|
||||||
|
|
||||||
- name: Download artifact from rc
|
- name: Download artifact from rc
|
||||||
if: ${{ github.ref == 'refs/heads/rc' && github.event_name != 'workflow_run' }}
|
if: github.ref == 'refs/heads/rc'
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
@@ -653,7 +636,7 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
path: ${{ github.workspace }}/browser-build-artifacts
|
||||||
|
|
||||||
- name: Download artifact from master
|
- name: Download artifact from master
|
||||||
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') }}
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
@@ -833,23 +816,14 @@ jobs:
|
|||||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Download artifact from workflow_run event
|
|
||||||
if: ${{ github.event_name == 'workflow_run' }}
|
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
|
||||||
with:
|
|
||||||
workflow: build-browser.yml
|
|
||||||
workflow_conclusion: success
|
|
||||||
run_id: ${{ github.event.workflow_run.id }}
|
|
||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
if: ${{ contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: contains(github.ref, 'hotfix-rc')
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
|
|
||||||
- name: Download artifact from hotfix-rc
|
- name: Download artifact from hotfix-rc
|
||||||
if: ${{ contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: contains(github.ref, 'hotfix-rc')
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
@@ -858,7 +832,7 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
path: ${{ github.workspace }}/browser-build-artifacts
|
||||||
|
|
||||||
- name: Download artifact from rc
|
- name: Download artifact from rc
|
||||||
if: ${{ github.ref == 'refs/heads/rc' && github.event_name != 'workflow_run' }}
|
if: github.ref == 'refs/heads/rc'
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
@@ -867,7 +841,7 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/browser-build-artifacts
|
path: ${{ github.workspace }}/browser-build-artifacts
|
||||||
|
|
||||||
- name: Download artifact from master
|
- name: Download artifact from master
|
||||||
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') && github.event_name != 'workflow_run' }}
|
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') }}
|
||||||
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0
|
||||||
with:
|
with:
|
||||||
workflow: build-browser.yml
|
workflow: build-browser.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user