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
22 lines
315 B
YAML
22 lines
315 B
YAML
name: C++
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
clang-format:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: clang-format
|
|
uses: ./.github/actions/clang-format
|
|
with:
|
|
directory: ./yoga
|