diff --git a/.github/workflows/out_in.yaml b/.github/workflows/out_in.yaml new file mode 100644 index 0000000..1fc9126 --- /dev/null +++ b/.github/workflows/out_in.yaml @@ -0,0 +1,23 @@ +name: out_in_puts +on: + workflow_call: + inputs: + title: + required: true + type: string + body: + required: true + type: string +jobs: + create_issue_on_failure: + runs_on: ubuntu-latest + permissions: + issues: write + steps: + - name: Create issue using REST API + run: | + curl --request POST \ + -u {{ vars.GIT_USERNAME_INTERNAL }}:${{ vars.USER_PASSWORD}} \ + -H "Content-Type: application/json" / + -d '{"title": "failure: ${{ inputs.title }}", "body": "Details: ${{inputs.body }}"}' + http://192.168.0.150:3000/api/v1/repos/${{ github.repository }}/issues