@@ -4,7 +4,7 @@ name: rake
4
4
5
5
on :
6
6
push :
7
- branches : [ master, main ]
7
+ branches : [ master, main ]
8
8
tags : [ v* ]
9
9
pull_request :
10
10
@@ -37,35 +37,17 @@ jobs:
37
37
ruby-version : ${{ matrix.ruby }}
38
38
bundler-cache : true
39
39
40
- - name : install plantuml ubuntu
41
- if : matrix.os == 'ubuntu-latest'
42
- uses : nick-invision/retry@v1
43
- with :
44
- polling_interval_seconds : 5
45
- timeout_minutes : 5
46
- max_attempts : 3
47
- command : >
48
- sudo apt-get update -y && sudo bash -c
49
- "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
50
-
51
- - if : matrix.os == 'macos-latest'
52
- run : brew install plantuml
53
-
54
- - if : matrix.os == 'windows-latest'
55
- run : cinst -y plantuml
40
+ - uses : metanorma/metanorma-build-scripts/plantuml-setup-action@master
56
41
57
42
- run : bundle exec rake
58
43
59
44
tests-passed :
60
45
needs : rake
61
46
runs-on : ubuntu-latest
62
- continue-on-error : true
63
47
steps :
64
- - name : Trigger tests passed event
65
- uses : Sibz/github-status-action@v1
48
+ - uses : peter-evans/repository-dispatch@v1
66
49
with :
67
- authToken : ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
68
- context : ' tests-passed-successfully'
69
- description : ' Tests passed successfully'
70
- state : ' success'
71
- sha : ${{ github.event.pull_request.head.sha || github.sha }}
50
+ token : ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
51
+ repository : ${{ github.repository }}
52
+ event-type : notify
53
+ client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
0 commit comments