diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d874394..02004d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,8 +2,6 @@ name: CI and Deploy Docs on: push: - branches: - - main workflow_dispatch: permissions: @@ -13,7 +11,7 @@ permissions: packages: write concurrency: - group: main + group: ${{ github.ref }} jobs: clang-format-check: @@ -317,6 +315,7 @@ jobs: deploy-docs: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' && github.repository == 'asfernandes/fb-cpp' needs: - clang-format-check - build-linux