Skip to content

Commit b05b707

Browse files
committed
Remove unneeded check, fix target workflow
1 parent a9153de commit b05b707

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ jobs:
329329
name: Upload
330330
runs-on: ubuntu-22.04
331331
needs: build-docker
332-
if: ${{ needs.build-artifacts.outputs.has_secrets == 'true' }}
333332
steps:
334333
- name: Check out repo
335334
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/build_target.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build on PR Target
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize]
66

77
defaults:
@@ -11,11 +11,12 @@ defaults:
1111
jobs:
1212
check-run:
1313
name: Check PR run
14+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
1415
uses: bitwarden/gh-actions/.github/workflows/check-run.yml@main
1516

1617
run-workflow:
1718
name: Run Build on PR Target
1819
needs: check-run
1920
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
2021
uses: ./.github/workflows/build.yml
21-
secrets: inherit
22+
secrets: inherit

0 commit comments

Comments
 (0)