Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stack-spot/workflow-github-action-r…
Browse files Browse the repository at this point in the history
…eport-status into feat/add-logs-to-step
  • Loading branch information
pedrohrfz committed Mar 25, 2024
2 parents c0e5b98 + 735775d commit 1fc44c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 41 deletions.
25 changes: 0 additions & 25 deletions Dockerfile

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This action execute StackSpot Workflow Report Status
client-id: "${{ secrets.CLIENT_ID }}"
client-secret: "${{ secrets.CLIENT_SECRET }}"
realm: "${{ secrets.REALM }}"
name: "Custom step name"
status: "started"

- name: Logs CLI
Expand All @@ -35,5 +36,6 @@ This action execute StackSpot Workflow Report Status
client-id: "${{ secrets.CLIENT_ID }}"
client-secret: "${{ secrets.CLIENT_SECRET }}"
realm: "${{ secrets.REALM }}"
name: "Custom step name"
status: "finished"
```
```
22 changes: 7 additions & 15 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ author: "StackSpot"
branding:
icon: "truck"
color: "purple"
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.execution-id }}
- ${{ inputs.client-id }}
- ${{ inputs.client-secret }}
- ${{ inputs.realm }}
- ${{ inputs.name }}
- ${{ inputs.status }}
- ${{ inputs.conclusion }}
- ${{ inputs.log }}
- ${{ inputs.idm-base-url }}
- ${{ inputs.workflow-api-base-url }}
inputs:
execution-id:
description: "Execution ID"
Expand All @@ -32,7 +18,7 @@ inputs:
description: "Realm StackSpot"
required: true
name:
description: "Realm StackSpot"
description: "Name of workflow step of status report"
required: true
status:
description: "Status of execution"
Expand All @@ -52,3 +38,9 @@ inputs:
description: "Workflow API base url"
required: false
default: "https://workflow-api.v1.stackspot.com"
runs:
using: "composite"
steps:
- shell: bash
run:
${{ github.action_path }}/entrypoint.sh "${{ inputs.execution-id }}" "${{ inputs.client-id }}" "${{ inputs.client-secret }}" "${{ inputs.realm }}" "${{ inputs.name }}" "${{ inputs.status }}" "${{ inputs.conclusion }}" "${{ inputs.log }}" "${{ inputs.idm-base-url }}" "${{ inputs.workflow-api-base-url }}"

0 comments on commit 1fc44c7

Please sign in to comment.