15 lines
355 B
YAML
15 lines
355 B
YAML
|
name: 'Custom Github Action'
|
||
|
description: 'A Github Action that takes an input and returns the square of the number'
|
||
|
inputs:
|
||
|
num:
|
||
|
description: 'Enter a number'
|
||
|
required: true
|
||
|
default: "1"
|
||
|
runs:
|
||
|
using: 'composite'
|
||
|
steps:
|
||
|
- name: Fetch the number's square
|
||
|
id: get-square
|
||
|
run: python3 -m get_num_square.py
|
||
|
shell: bash
|