Update action.yml

This commit is contained in:
jstan-isch 2023-01-28 12:18:02 -06:00 committed by GitHub
parent a383d0a05f
commit a13580ba1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,13 +3,10 @@ name: curl
on:
workflow_call:
inputs:
env:
description: 'sha'
sha:
required: true
type: string
secrets:
env:
description: 'secret'
secret:
required: true
jobs:
@ -20,6 +17,6 @@ jobs:
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ inputs.secrets }}" \
-H "Authorization: Bearer ${{ secrets.secret }}" \
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
-d '{"name":"myEvent","head_sha":"${{ inputs.sha }}","status":"completed", "conclusion":"success"}'