Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Create test_action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mofsesam authored Feb 7, 2024
1 parent 9fa7bba commit d7604a3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .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/fetch-shipyard-env@1.0.0
with:
num: 11
- name: Print the square
run: echo "${{ steps.get_square.outputs.num_squared }}"

0 comments on commit d7604a3

Please sign in to comment.