-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (28 loc) · 943 Bytes
/
report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
workflow_call:
inputs:
metricName:
required: true
type: string
metricValue:
required: true
type: string
jobs:
report:
runs-on: ubuntu-latest
env:
L2MET_SHUTTLE_URL: ${{ secrets.L2MET_SHUTTLE_URL }}
steps:
- run: |
git clone https://github.com/heroku/heroku-buildpack-l2met-shuttle.git
heroku-buildpack-l2met-shuttle/bin/compile .
- run: heroku-buildpack-l2met-shuttle/support/start-l2met-shuttle echo "${{ inputs.metricName }}=0"
if: ${{inputs.metricValue == 'Failed'}}
- run: heroku-buildpack-l2met-shuttle/support/start-l2met-shuttle echo "${{ inputs.metricName }}=1"
if: ${{inputs.metricValue == 'Passed'}}
- name: fail the job
if: ${{inputs.metricValue == 'Failed'}}
uses: actions/github-script@v7
with:
script: |
core.setFailed('${{ inputs.metricName }}')