Initial commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/test_action.yaml | |
name: Test Action | |
on: [push] | |
jobs: | |
get-num-square: | |
runs-on: ubuntu-latest | |
name: Return's 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 }}" |