Skip to content

Commit 08baf7c

Browse files
author
Jason
authored
Merge branch 'master' into dependabot/npm_and_yarn/motoko/hello/follow-redirects-1.15.5
2 parents 84065b6 + 9f6da77 commit 08baf7c

20 files changed

+226
-234
lines changed

.github/workflows/motoko-calc-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- motoko/calc/**
9-
- .github/workflows/provision-darwin.sh
10-
- .github/workflows/provision-linux.sh
11-
- .github/workflows/motoko-calc-example.yaml
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/calc/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-calc-example.yaml
1631
motoko-calc-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-calc-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-calc-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-counter-example.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
outputs:
1818
sources: ${{ steps.filter.outputs.sources }}
1919
steps:
20-
# For pull requests it's not necessary to checkout the code
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
2122
- uses: dorny/paths-filter@v3
2223
id: filter
2324
with:
@@ -29,7 +30,7 @@ jobs:
2930
- .github/workflows/motoko-counter-example.yaml
3031
motoko-counter-example-darwin:
3132
needs: changes
32-
if: ${{ needs.changes.outputs.sources == 'true' }}
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
3334
runs-on: macos-12
3435
steps:
3536
- uses: actions/checkout@v1
@@ -43,7 +44,7 @@ jobs:
4344
popd
4445
motoko-counter-example-linux:
4546
needs: changes
46-
if: ${{ needs.changes.outputs.sources == 'true' }}
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
4748
runs-on: ubuntu-20.04
4849
steps:
4950
- uses: actions/checkout@v1

.github/workflows/motoko-echo-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- motoko/echo/**
9-
- .github/workflows/provision-darwin.sh
10-
- .github/workflows/provision-linux.sh
11-
- .github/workflows/motoko-echo-example.yaml
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/echo/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-echo-example.yaml
1631
motoko-echo-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-echo-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-echo-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-factorial-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- motoko/factorial/**
9-
- .github/workflows/provision-darwin.sh
10-
- .github/workflows/provision-linux.sh
11-
- .github/workflows/motoko-factorial-example.yaml
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/factorial/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-factorial-example.yaml
1631
motoko-factorial-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-factorial-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-factorial-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-hello-world-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- motoko/hello-world/**
9-
- .github/workflows/provision-darwin.sh
10-
- .github/workflows/provision-linux.sh
11-
- .github/workflows/motoko-hello-world-example.yaml
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/hello-world/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-hello-world-example.yaml
1631
motoko-hello-world-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-hello-world-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-hello-world-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-phone-book-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- motoko/phone-book/**
9-
- .github/workflows/provision-darwin.sh
10-
- .github/workflows/provision-linux.sh
11-
- .github/workflows/motoko-phone-book-example.yaml
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/phone-book/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-phone-book-example.yaml
1631
motoko-phone-book-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-phone-book-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-phone-book-skip.yaml

-20
This file was deleted.

0 commit comments

Comments
 (0)