mirror of https://github.com/jenkinsci/jenkins.git
Don't run core actions on forks (#11072)
This commit is contained in:
parent
80cb24beec
commit
077acbb3f7
|
@ -7,6 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
post:
|
post:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.repository_owner == 'jenkinsci' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Post on Discourse
|
- name: Post on Discourse
|
||||||
uses: roots/discourse-topic-github-release-action@c30dc233349b7c6f24f52fb1c659cc64f13b5474 # v1.0.1
|
uses: roots/discourse-topic-github-release-action@c30dc233349b7c6f24f52fb1c659cc64f13b5474 # v1.0.1
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
pull-requests: write # to add label to PR (release-drafter/release-drafter)
|
pull-requests: write # to add label to PR (release-drafter/release-drafter)
|
||||||
contents: write # to create a github release (release-drafter/release-drafter)
|
contents: write # to create a github release (release-drafter/release-drafter)
|
||||||
|
|
||||||
if: github.repository_owner == 'jenkinsci'
|
if: ${{ github.repository_owner == 'jenkinsci' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||||
|
|
|
@ -9,7 +9,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
if: github.event.pull_request.user.login != 'dependabot[bot]'
|
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.repository_owner == 'jenkinsci' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Label conflicting PRs
|
- name: Label conflicting PRs
|
||||||
|
|
|
@ -9,6 +9,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
determine-version:
|
determine-version:
|
||||||
|
if: ${{ github.repository_owner == 'jenkinsci' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
project-version: ${{ steps.set-version.outputs.project-version }}
|
project-version: ${{ steps.set-version.outputs.project-version }}
|
||||||
|
|
|
@ -6,6 +6,7 @@ on:
|
||||||
- "master"
|
- "master"
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
label:
|
||||||
|
if: ${{ github.repository_owner == 'jenkinsci' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
|
Loading…
Reference in New Issue