Skip to content

Commit 20db2a2

Browse files
authored
Final fix for CI (#66)
* Check what's the event name * Fix Action context * Final try for CI
1 parent 928c21f commit 20db2a2

File tree

2 files changed

+8
-29
lines changed

2 files changed

+8
-29
lines changed

.github/workflows/dart.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- master
88
- null-safety
9+
- fix-ci-null-safety
910
pull_request:
1011
defaults:
1112
run:
@@ -1637,38 +1638,15 @@ jobs:
16371638
- job_017
16381639
- job_018
16391640
job_022:
1640-
name: Dump GitHub event
1641-
run: "echo \"${{ github.event_name }}\""
1642-
needs:
1643-
- job_001
1644-
- job_002
1645-
- job_003
1646-
- job_004
1647-
- job_005
1648-
- job_006
1649-
- job_007
1650-
- job_008
1651-
- job_009
1652-
- job_010
1653-
- job_011
1654-
- job_012
1655-
- job_013
1656-
- job_014
1657-
- job_015
1658-
- job_016
1659-
- job_017
1660-
- job_018
1661-
- job_019
1662-
- job_020
1663-
- job_021
1664-
job_023:
16651641
name: Deploy to Firebase Hosting on PR
1666-
if: "github.event_name == 'pull_request' && ${{ github.event.pull_request.head.repo.full_name == github.repository }}"
1642+
if: "github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository"
16671643
runs-on: ubuntu-latest
16681644
steps:
16691645
- uses: actions/checkout@v2
16701646
- name: Setup Dart SDK
16711647
uses: dart-lang/setup-dart@v1.3
1648+
with:
1649+
sdk: stable
16721650
- run: "dart pub get && dart run build_runner build -o build"
16731651
working-directory: examples/angular_components_example
16741652
- uses: FirebaseExtended/action-hosting-deploy@v0

mono_repo.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ github:
99
- main
1010
- master
1111
- null-safety
12+
- fix-ci-null-safety
1213
pull_request:
1314
# cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.” # Conflict with `on`
1415
stages:
@@ -19,16 +20,16 @@ github:
1920
- build
2021

2122
on_completion:
22-
- name: Dump GitHub event
23-
run: echo "${{ github.event_name }}"
2423
- name: "Deploy to Firebase Hosting on PR"
25-
if: "github.event_name == 'pull_request' && ${{ github.event.pull_request.head.repo.full_name == github.repository }}"
24+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
2625
runs-on: ubuntu-latest
2726
steps:
2827
- uses: actions/checkout@v2
2928

3029
- name: Setup Dart SDK
3130
uses: dart-lang/setup-dart@v1.3
31+
with:
32+
sdk: stable
3233

3334
- run: dart pub get && dart run build_runner build -o build
3435
working-directory: examples/angular_components_example

0 commit comments

Comments
 (0)