Gate workflows to only run on upstream
This commit is contained in:
parent
bcf5f407fb
commit
45d2262963
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -17,6 +17,7 @@ env:
|
||||
|
||||
jobs:
|
||||
rust:
|
||||
if: github.repository == 'rust-analyzer/rust-analyzer'
|
||||
name: Rust
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
@ -61,6 +62,7 @@ jobs:
|
||||
|
||||
# Weird targets to catch non-portable code
|
||||
rust-cross:
|
||||
if: github.repository == 'rust-analyzer/rust-analyzer'
|
||||
name: Rust Cross
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -97,6 +99,7 @@ jobs:
|
||||
done
|
||||
|
||||
typescript:
|
||||
if: github.repository == 'rust-analyzer/rust-analyzer'
|
||||
name: TypeScript
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
1
.github/workflows/metrics.yaml
vendored
1
.github/workflows/metrics.yaml
vendored
@ -12,6 +12,7 @@ env:
|
||||
|
||||
jobs:
|
||||
metrics:
|
||||
if: github.repository == 'rust-analyzer/rust-analyzer'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@ -247,12 +247,12 @@ jobs:
|
||||
working-directory: ./editors/code
|
||||
|
||||
- name: Publish Extension (release)
|
||||
if: github.ref == 'refs/heads/release'
|
||||
if: github.ref == 'refs/heads/release' && github.repository == 'rust-analyzer/rust-analyzer'
|
||||
working-directory: ./editors/code
|
||||
# token from https://dev.azure.com/rust-analyzer/
|
||||
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
|
||||
|
||||
- name: Publish Extension (nightly)
|
||||
if: github.ref != 'refs/heads/release'
|
||||
if: github.ref != 'refs/heads/release' && github.repository == 'rust-analyzer/rust-analyzer'
|
||||
working-directory: ./editors/code
|
||||
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
|
||||
|
1
.github/workflows/rustdoc.yaml
vendored
1
.github/workflows/rustdoc.yaml
vendored
@ -12,6 +12,7 @@ env:
|
||||
|
||||
jobs:
|
||||
rustdoc:
|
||||
if: github.repository == 'rust-analyzer/rust-analyzer'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user