Create action.yml

This commit is contained in:
jstan-isch 2023-01-28 12:00:07 -06:00 committed by GitHub
parent fbae18e9fc
commit 84ee9dbbf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
.github/curl/action.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: curl
on:
workflow_call:
inputs:
env:
description: 'sha'
required: true
type: string
secrets:
env:
description: 'secret'
required: true
jobs:
curl:
runs-on: ubuntu-latest
steps:
- run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ input.secrets }}" \
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
-d '{"name":"myEvent","head_sha":"${{ input.sha }}","status":"completed", "conclusion":"success"}'