mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Create action.yml
This commit is contained in:
parent
fbae18e9fc
commit
84ee9dbbf0
1 changed files with 25 additions and 0 deletions
25
.github/curl/action.yml
vendored
Normal file
25
.github/curl/action.yml
vendored
Normal 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"}'
|
Loading…
Reference in a new issue