[PM-15126] Third attempt: Remove reliance on secrets in build pipelines #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build CLI on PR Target | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
branches-ignore: | |
- 'l10n_master' | |
- 'cf-pages' | |
paths: | |
- 'apps/cli/**' | |
- 'libs/**' | |
- '*' | |
- '!*.md' | |
- '!*.txt' | |
- '.github/workflows/build-cli.yml' | |
- 'bitwarden_license/bit-cli/**' | |
workflow_dispatch: | |
inputs: | |
sdk_branch: | |
description: "Custom SDK branch" | |
required: false | |
type: string | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check-run: | |
name: Check PR run | |
uses: bitwarden/gh-actions/.github/workflows/check-run.yml@main | |
run-workflow: | |
name: Run Build CLI on PR Target | |
needs: check-run | |
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
uses: ./.github/workflows/build-cli.yml | |
secrets: inherit | |