diff --git a/.forgejo/dotnet-build/action.yml b/.forgejo/dotnet-build/action.yml new file mode 100644 index 0000000..e707255 --- /dev/null +++ b/.forgejo/dotnet-build/action.yml @@ -0,0 +1,22 @@ +inputs: + # input-one: + # default: 'one' + # description: 'description one' + # input-two-required: + # description: 'description two' + # required: true +outputs: + key: + description: 'output value' + value: "${{ steps.one.outputs.key }}" + +runs: + using: "composite" + steps: + - name: FORGEJO_ACTION_PATH + run: | + set -x + test -e "$FORGEJO_ACTION_PATH" + test "$FORGEJO_ACTION_PATH" = "${{ env.FORGEJO_ACTION_PATH }}" + + - run: echo key=${{ inputs.input-two-required }} >> $FORGEJO_OUTPUT diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b4f84d6..6548376 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,4 +7,8 @@ jobs: asdf: runs-on: dotnet steps: - - run: echo Dotnet I guess? + - id: dotnet-build + uses: ./.forgejo/dotnet-build + # with: + # input-two-required: "two" + - run: test "${{ steps.dotnet-build.outputs.key }}" = "two"