aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-01-24 00:03:10 +0900
committerikoamu <ikoamu@gmail.com>2024-01-24 00:03:10 +0900
commitebb62a94fc4baa162c99cd002b91008a51f625d2 (patch)
treee36b476c9585092c659e537a539b0485f26a209d
parent66ebbf36996962fcee8a03e131306b01bb293447 (diff)
Add checkout step and list files in action.yml
-rw-r--r--action.yml32
1 files changed, 8 insertions, 24 deletions
diff --git a/action.yml b/action.yml
index 9704b32..d0d1cce 100644
--- a/action.yml
+++ b/action.yml
@@ -3,29 +3,13 @@ name: "Publish org-roam to GitHub Pages"
runs:
using: "composite"
steps:
- - name: "Test"
- run: ls -l
- shell: bash
-
- # - name: Checkout org-roam-ui
- # uses: actions/checkout@v4
- # with:
- # repository: ikoamu/org-roam-ui
- # ref: feature/add-export-functionality
- # path: ui
-
- # - name: "Test"
- # run: ls -l
- # shell: bash
-
- - name: Setup Node
- uses: actions/setup-node@v3
+ # 呼び出されたworkflowのリポジトリをチェックアウトし、ファイル一覧を出力する
+ - name: "Checkout"
+ uses: actions/checkout@v4
with:
- node-version: "20.x"
-
- # 呼び出し側たworkflowsのディレクトリのパスを取得する
- - name: Get the path of the calling workflow
- id: get_path
+ repository: ${{ github.repository }}
+ path: "repo"
+ - name: "List files"
run: |
- echo "::set-output name=path::$(dirname $GITHUB_WORKFLOW)"
- shell: bash
+ cd repo
+ find . -type f