Skip to content

Commit 03e8f1c

Browse files
authored
CI: run workflow on all branches, not just main (asfernandes#34)
1 parent 20d397e commit 03e8f1c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: CI and Deploy Docs
22

33
on:
44
push:
5-
branches:
6-
- main
75
workflow_dispatch:
86

97
permissions:
@@ -13,7 +11,7 @@ permissions:
1311
packages: write
1412

1513
concurrency:
16-
group: main
14+
group: ${{ github.ref }}
1715

1816
jobs:
1917
clang-format-check:
@@ -318,6 +316,7 @@ jobs:
318316
deploy-docs:
319317
if: github.repository == 'asfernandes/fb-cpp'
320318
runs-on: ubuntu-latest
319+
if: github.ref == 'refs/heads/main' && github.repository == 'asfernandes/fb-cpp'
321320
needs:
322321
- clang-format-check
323322
- build-linux

0 commit comments

Comments
 (0)