Skip to content

Commit

Permalink
Prevent GH actions trigger on forks, update template (#2696)
Browse files Browse the repository at this point in the history
## Description

Hippity hoppity your code is now my property
(software-mansion/react-native-reanimated#5030).

Also updates the template:
- adds MacOS as platform
- updates placeholder version of GH to 2.14.0 from 2.5.0 (yikes)
- updates placeholder RN version to 0.73.0 from 0.69.0 (not nice, I can
be talked out of this)
  • Loading branch information
j-piasecki committed Dec 15, 2023
1 parent f89b1bf commit 965847f
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ body:
attributes:
label: Gesture Handler version
description: What version of react-native-gesture-handler are you using?
placeholder: 2.5.0
placeholder: 2.14.0
validations:
required: true

Expand All @@ -64,7 +64,7 @@ body:
attributes:
label: React Native version
description: What version of react-native are you using?
placeholder: 0.69.0
placeholder: 0.73.0
validations:
required: true

Expand All @@ -78,6 +78,7 @@ body:
- Android
- iOS
- Web
- MacOS
validations:
required: true

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
workflow_dispatch:
jobs:
build:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/close-when-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
main:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
check:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
concurrency:
group: docs-check-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
workflow_dispatch:
jobs:
build:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: macos-12
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/kotlin-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
concurrency:
group: kotlin-lint-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
workflow_dispatch:
jobs:
build:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: macos-12
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
publish:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
steps:
- name: Check out
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/needs-more-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
main:
if: ${{ github.repository == 'software-mansion/react-native-gesture-handler' && !contains(github.event.issue.labels.*.name, 'Maintainer issue') }}
runs-on: ubuntu-latest
concurrency:
group: needs-more-info-${{ github.event.issue.number }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/needs-repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
main:
if: ${{ github.repository == 'software-mansion/react-native-gesture-handler' && !contains(github.event.issue.labels.*.name, 'Maintainer issue') }}
runs-on: ubuntu-latest
concurrency:
group: needs-repro-${{ github.event.issue.number }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
main:
if: ${{ github.repository == 'software-mansion/react-native-gesture-handler' && !contains(github.event.issue.labels.*.name, 'Maintainer issue') }}
runs-on: ubuntu-latest
concurrency:
group: platforms-${{ github.event.issue.number }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static-example-apps-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static-root-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
concurrency:
group: static-root-${{ github.ref }}
Expand Down

0 comments on commit 965847f

Please sign in to comment.