aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-01-23 23:56:18 +0900
committerikoamu <ikoamu@gmail.com>2024-01-23 23:56:18 +0900
commit5df00674e2e820b4eccc4a0f2d7f618d8d5b90b9 (patch)
treebe67c4dc715037c1fa854ccb9ab402c11c2057b0
parentf65b21f54fe6054087965edd7ed7737124e906bb (diff)
Add step to get the path of the calling workflow
-rw-r--r--action.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/action.yml b/action.yml
index de9607b..3c120f9 100644
--- a/action.yml
+++ b/action.yml
@@ -22,3 +22,9 @@ runs:
uses: actions/setup-node@v3
with:
node-version: "20.x"
+
+ # 呼び出し側たworkflowsのディレクトリのパスを取得する
+ - name: Get the path of the calling workflow
+ id: get_path
+ run: |
+ echo "::set-output name=path::$(dirname $GITHUB_WORKFLOW)"