Skip to content

Commit 44e718b

Browse files
committed
Update GHA workflows (experimental ruby 3 and refactoring)
1 parent af4b31c commit 44e718b

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/rake.yml

+7-25
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: rake
44

55
on:
66
push:
7-
branches: [ master, main ]
7+
branches: [ master, main ]
88
tags: [ v* ]
99
pull_request:
1010

@@ -37,35 +37,17 @@ jobs:
3737
ruby-version: ${{ matrix.ruby }}
3838
bundler-cache: true
3939

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
5641

5742
- run: bundle exec rake
5843

5944
tests-passed:
6045
needs: rake
6146
runs-on: ubuntu-latest
62-
continue-on-error: true
6347
steps:
64-
- name: Trigger tests passed event
65-
uses: Sibz/github-status-action@v1
48+
- uses: peter-evans/repository-dispatch@v1
6649
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

Comments
 (0)