Skip to content

Commit

Permalink
Add context steps to action declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvict committed Apr 11, 2024
1 parent 02960c7 commit 64f427a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: 'Pass context `github` into an external action. Default is global context `github`.'
required: false
default: ${{ toJSON( github ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
required: false
default: '{}'
job_context:
description: 'Pass context `job` into an external action. Default is context `job` of a job.'
required: false
Expand All @@ -35,10 +39,10 @@ inputs:
description: 'Pass context `matrix` into an external action. Default is context `matrix` of a job.'
required: false
default: ${{ toJSON( matrix ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
steps_context:
description: 'Pass context `steps` into an external action. Default is context `steps` of a job.'
required: false
default: '{}'
default: ${{ toJSON( steps ) }}
attempt_limit:
description: 'Number of attempts'
required: false
Expand Down
10 changes: 7 additions & 3 deletions main/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: 'Pass context `github` into an external action. Default is global context `github`.'
required: false
default: ${{ toJSON( github ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
required: false
default: '{}'
job_context:
description: 'Pass context `job` into an external action. Default is context `job` of a job.'
required: false
Expand All @@ -35,10 +39,10 @@ inputs:
description: 'Pass context `matrix` into an external action. Default is context `matrix` of a job.'
required: false
default: ${{ toJSON( matrix ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
steps_context:
description: 'Pass context `steps` into an external action. Default is context `steps` of a job.'
required: false
default: '{}'
default: ${{ toJSON( steps ) }}
attempt_limit:
description: 'Number of attempts'
required: false
Expand Down
10 changes: 7 additions & 3 deletions post/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: 'Pass context `github` into an external action. Default is global context `github`.'
required: false
default: ${{ toJSON( github ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
required: false
default: '{}'
job_context:
description: 'Pass context `job` into an external action. Default is context `job` of a job.'
required: false
Expand All @@ -35,10 +39,10 @@ inputs:
description: 'Pass context `matrix` into an external action. Default is context `matrix` of a job.'
required: false
default: ${{ toJSON( matrix ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
steps_context:
description: 'Pass context `steps` into an external action. Default is context `steps` of a job.'
required: false
default: '{}'
default: ${{ toJSON( steps ) }}
attempt_limit:
description: 'Number of attempts'
required: false
Expand Down
10 changes: 7 additions & 3 deletions pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: 'Pass context `github` into an external action. Default is global context `github`.'
required: false
default: ${{ toJSON( github ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
required: false
default: '{}'
job_context:
description: 'Pass context `job` into an external action. Default is context `job` of a job.'
required: false
Expand All @@ -35,10 +39,10 @@ inputs:
description: 'Pass context `matrix` into an external action. Default is context `matrix` of a job.'
required: false
default: ${{ toJSON( matrix ) }}
inputs_context:
description: 'Pass context `inputs` into an external action. The action cannot resolve context `inputs` and resolve all inputs. If you need valid context `inputs`, then add option as described in `Readme.md`.'
steps_context:
description: 'Pass context `steps` into an external action. Default is context `steps` of a job.'
required: false
default: '{}'
default: ${{ toJSON( steps ) }}
attempt_limit:
description: 'Number of attempts'
required: false
Expand Down

0 comments on commit 64f427a

Please sign in to comment.