27 lines
790 B
YAML
Executable File
27 lines
790 B
YAML
Executable File
name: 'Simple param action Python'
|
|
description: 'Prints the argument and stores it in the file'
|
|
inputs:
|
|
name:
|
|
description: 'First argument value'
|
|
required: true
|
|
default: 'Mike'
|
|
outputs:
|
|
processed-name:
|
|
description: 'Processed name'
|
|
# This is different. We need to specify which step has the output
|
|
value: ${{ steps.process-name.outputs.processed-name }}
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Install Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Pass Inputs to Shell
|
|
run: |
|
|
echo "INPUT_NAME=${{ inputs.name }}" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
- name: Fetch the number's square
|
|
id: process-name
|
|
run: python ./.gitea/actions/python-action/main.py
|
|
shell: bash |