-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
30 lines (30 loc) · 1.07 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Python environment information
description: "Print various Python environment information including installed packages"
inputs:
output-path:
description: "A file path to write the information to."
required: False
default: ""
python-path:
description: "The Python command for the environment to report on."
required: False
default: "python"
outputs:
output:
description: "The full informational output"
value: ${{ steps.the_run.outputs.output }}
runs:
using: "composite"
steps:
- shell: bash
id: the_run
run: |
${{ inputs.python-path }} $GITHUB_ACTION_PATH/info.py
env:
ACTION_FILE_PATH: ${{ inputs.output-path }}
_PYTHON_INFO_ACTION_CONTEXT_GitHub: ${{ toJson(github) }}
_PYTHON_INFO_ACTION_CONTEXT_Job: ${{ toJson(job) }}
_PYTHON_INFO_ACTION_CONTEXT_Steps: ${{ toJson(steps) }}
_PYTHON_INFO_ACTION_CONTEXT_Runner: ${{ toJson(runner) }}
_PYTHON_INFO_ACTION_CONTEXT_Strategy: ${{ toJson(strategy) }}
_PYTHON_INFO_ACTION_CONTEXT_Matrix: ${{ toJson(matrix) }}