From 84ee9dbbf05cba9624a5ee3957c6348bfb56b3a6 Mon Sep 17 00:00:00 2001 From: jstan-isch <52019536+jstan-isch@users.noreply.github.com> Date: Sat, 28 Jan 2023 12:00:07 -0600 Subject: [PATCH] Create action.yml --- .github/curl/action.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/curl/action.yml diff --git a/.github/curl/action.yml b/.github/curl/action.yml new file mode 100644 index 000000000..5537a1229 --- /dev/null +++ b/.github/curl/action.yml @@ -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"}'