Capturing output from steps
This commit is contained in:
parent
88e7d559a2
commit
84b94f84a7
15
.github/workflows/out_in.yaml
vendored
15
.github/workflows/out_in.yaml
vendored
@ -11,13 +11,10 @@ on:
|
||||
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
|
||||
- name: Set Debug
|
||||
id: set-debug-stage
|
||||
run: echo "BUILD_STAGE=debug" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Get Stage
|
||||
run: echo "The build stage is ${{ steps.set-debug-stage.outputs.BUILD_STAGE}}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user