diff --git a/.github/workflows/microsoft-codeql-pack-publish.yml b/.github/workflows/microsoft-codeql-pack-publish.yml index 58d48fe47b9..cb4d0a745a6 100644 --- a/.github/workflows/microsoft-codeql-pack-publish.yml +++ b/.github/workflows/microsoft-codeql-pack-publish.yml @@ -5,7 +5,7 @@ on: jobs: check-branch: - if: github.ref != 'refs/heads/main' + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - run: echo "This workflow can only run on the 'main' branch." && exit 1