Skip to content

Commit

Permalink
gh-actions/using/steps: Add context and secret (#1035)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Nov 15, 2023
1 parent 8d77038 commit 3bfc038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gh-actions/using/steps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ inputs:
default:
context:
type: string
secret:
type: string
step-format:
type: string
default: yaml
Expand Down Expand Up @@ -46,6 +48,7 @@ runs:
id: steps
with:
context: ${{ !fromJSON(inputs.isolated) && inputs.context || '' }}
secret: ${{ !fromJSON(inputs.isolated) && inputs.secret || '' }}
- name: Cleanup (.tmp.action)
if: always()
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions gh-actions/using/steps/steps.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
inputs:
context:
type: string
secret:
type: string

outputs:
steps:
Expand Down

0 comments on commit 3bfc038

Please sign in to comment.