feat: skip download crowdin files workflow on forks #3834
Workflow file for this run
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 PR From Fork | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | # check if PR opened from fork | |
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name || contains(github.head_ref, 'dependabot') | |
steps: | |
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | |
with: | |
persist-credentials: false | |
- name: Build App | |
uses: ./.github/actions/build | |
with: | |
NEXT_PUBLIC_ENV: 'prod' | |
- name: Upload artifacts | |
uses: ./.github/actions/upload-artifacts |