From ebb62a94fc4baa162c99cd002b91008a51f625d2 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Wed, 24 Jan 2024 00:03:10 +0900 Subject: Add checkout step and list files in action.yml --- action.yml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'action.yml') 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 -- cgit