Skip to content

Commit

Permalink
Add authorize job
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 22, 2023
1 parent 3dbf414 commit a78409d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ env:
flutter-version: '3.x'

jobs:
authorize:
name: Authorize
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

analyze:
name: Analyze Flutter packages
needs: authorize
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -38,6 +46,7 @@ jobs:

test-flutter:
name: Test Flutter packages
needs: authorize
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -85,6 +94,7 @@ jobs:

test-ios:
name: Test native iOS code using Xcode ${{ matrix.xcode }}
needs: authorize
runs-on: macos-latest

env:
Expand Down

0 comments on commit a78409d

Please sign in to comment.