end-to-end/actions/example-local-action/.forgejo/local-action/action.yml

23 lines
540 B
YAML
Raw Normal View History

2023-10-28 22:29:04 +02:00
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:
2024-01-05 19:37:15 +01:00
- name: GITHUB_ACTION_PATH
run: |
set -x
test "$(basename $GITHUB_ACTION_PATH)" = local-action
test "$GITHUB_ACTION_PATH" = "${{ env.GITHUB_ACTION_PATH }}"
2023-10-28 22:29:04 +02:00
- run: echo key=${{ inputs.input-two-required }} >> $GITHUB_OUTPUT