minor: Don't run CI on master branch

This commit is contained in:
Lukas Wirth 2022-04-14 00:42:51 +02:00
parent 8ab26f6abc
commit baaf18b1e1
3 changed files with 5 additions and 8 deletions

View file

@ -6,9 +6,6 @@ on:
pull_request:
push:
branches:
- master
- staging
- trying
- auto
- try
@ -22,7 +19,7 @@ env:
jobs:
rust:
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
if: github.repository == 'rust-lang/rust-analyzer'
name: Rust
runs-on: ${{ matrix.os }}
env:
@ -67,7 +64,7 @@ jobs:
# Weird targets to catch non-portable code
rust-cross:
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
if: github.repository == 'rust-lang/rust-analyzer'
name: Rust Cross
runs-on: ubuntu-latest
@ -104,7 +101,7 @@ jobs:
done
typescript:
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
if: github.repository == 'rust-lang/rust-analyzer'
name: TypeScript
strategy:
fail-fast: false

View file

@ -12,7 +12,7 @@ env:
jobs:
metrics:
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
if: github.repository == 'rust-lang/rust-analyzer'
runs-on: ubuntu-latest
steps:

View file

@ -12,7 +12,7 @@ env:
jobs:
rustdoc:
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
if: github.repository == 'rust-lang/rust-analyzer'
runs-on: ubuntu-latest
steps: