2024-01-05 19:37:15 +01:00
|
|
|
inputs:
|
|
|
|
input-one:
|
|
|
|
default: 'one'
|
|
|
|
description: 'description one'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: GITHUB_ACTION_REPOSITORY
|
|
|
|
run: |
|
|
|
|
set -x
|
|
|
|
test "$GITHUB_ACTION_REPOSITORY" = root/action-for-context
|
|
|
|
test "$GITHUB_ACTION_REPOSITORY" = "${{ env.GITHUB_ACTION_REPOSITORY }}"
|
2024-01-09 23:02:33 +01:00
|
|
|
test "$GITHUB_ACTION_REPOSITORY" = "${{ github.ACTION_REPOSITORY }}"
|
2024-01-05 19:37:15 +01:00
|
|
|
touch /srv/example/example-context/GITHUB_ACTION_REPOSITORY
|
|
|
|
|
|
|
|
- name: GITHUB_ACTION_PATH
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
set -x
|
|
|
|
[[ "$GITHUB_ACTION_PATH" =~ action-for-context@main$ ]]
|
2024-01-09 23:02:33 +01:00
|
|
|
test "$GITHUB_ACTION_PATH" = "${{ github.ACTION_PATH }}"
|
2024-01-05 19:37:15 +01:00
|
|
|
touch /srv/example/example-context/GITHUB_ACTION_PATH
|