Summary: We run validation workflows on push, but we do this for every branch, so dependabot PRs run every validation twice. We only really want push validation for the main branch. Pull Request resolved: https://github.com/facebook/yoga/pull/1182 Test Plan: PRs still run Reviewed By: cortinico Differential Revision: D41741459 Pulled By: NickGerleman fbshipit-source-id: 51abe2cc0c8c5b9c3fc8c8a20a585c9d5e868a5e
24 lines
347 B
YAML
24 lines
347 B
YAML
name: Website
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-website
|
|
|
|
- name: yarn build
|
|
run: yarn build
|
|
working-directory: website
|