From 6fd598f98bd2a05577d3a8d5b3025256a56404e3 Mon Sep 17 00:00:00 2001 From: junglesub Date: Sat, 26 Apr 2025 14:50:43 +0900 Subject: [PATCH] refactor: refactor working-directory to defaults --- .github/workflows/validate-action-dist.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-action-dist.yml b/.github/workflows/validate-action-dist.yml index 8b5a939d..98d8b757 100644 --- a/.github/workflows/validate-action-dist.yml +++ b/.github/workflows/validate-action-dist.yml @@ -15,6 +15,9 @@ jobs: check-dist: runs-on: ubuntu-latest if: github.event.pull_request.draft == false || github.event_name == 'push' + defaults: + run: + working-directory: .github/actions/auto-assign-reviewer steps: - name: Checkout code @@ -28,15 +31,12 @@ jobs: node-version: "20" - name: Install dependencies - working-directory: .github/actions/auto-assign-reviewer run: npm ci - name: Rebuild action - working-directory: .github/actions/auto-assign-reviewer run: npm run build - name: Check if dist is up-to-date - working-directory: .github/actions/auto-assign-reviewer run: | git diff --exit-code dist || { echo "❌ dist/ is not up to date. Please run 'npm run build' and commit the result."