Capturing output from steps

This commit is contained in:
maximo tejeda 2024-09-01 11:41:42 -04:00
parent 88e7d559a2
commit 84b94f84a7

View File

@ -11,13 +11,10 @@ on:
jobs: jobs:
create_issue_on_failure: create_issue_on_failure:
runs_on: ubuntu-latest runs_on: ubuntu-latest
permissions:
issues: write
steps: steps:
- name: Create issue using REST API - name: Set Debug
run: | id: set-debug-stage
curl --request POST \ run: echo "BUILD_STAGE=debug" >> $GITHUB_OUTPUT
-u {{ vars.GIT_USERNAME_INTERNAL }}:${{ vars.USER_PASSWORD}} \
-H "Content-Type: application/json" / - name: Get Stage
-d '{"title": "failure: ${{ inputs.title }}", "body": "Details: ${{inputs.body }}"}' run: echo "The build stage is ${{ steps.set-debug-stage.outputs.BUILD_STAGE}}"
http://192.168.0.150:3000/api/v1/repos/${{ github.repository }}/issues