From d7604a3f6b933aded6c15939f8ea40f53209fbea Mon Sep 17 00:00:00 2001 From: Morten Frellumstad Date: Wed, 7 Feb 2024 08:59:29 +0100 Subject: [PATCH] Create test_action.yaml --- .github/workflows/test_action.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test_action.yaml diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml new file mode 100644 index 0000000..f175f0e --- /dev/null +++ b/.github/workflows/test_action.yaml @@ -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 }}"