Skip to content

add action with python code #1

add action with python code

add action with python code #1

Workflow file for this run

# .github/workflows/test_action.yaml
name: Test Action
on: [push]
jobs:
get-num-square:
runs-on: ubuntu-latest
name: Returns the number square
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch num squared
id: get_square
uses: ./ # Uses an action in the root directory
# or use a released GitHub Action
# uses: shipyard/github-action/[email protected]
with:
num: 11
- name: Print the square
run: echo "${{ steps.get_square.outputs.num_squared }}"