diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5a89b44d..188bb244 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -32,6 +32,12 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install + - name: check fmt + run: pnpm fmt:check + - name: check lint + run: pnpm lint + - name: check lint text + run: pnpm lint:text - name: check types run: pnpm tsc --noEmit - name: check building diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index adf0f030..02f35656 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,6 +23,14 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Check if it's the original repo and the main branch + run: | + if [[ "${{ github.repository }}" == "Ubugeeei/chibivue" && "${{ github.ref }}" == "refs/heads/main" ]]; then + echo "This is the original repo's main branch, running the workflow." + else + echo "This is a fork or a different branch, skipping the workflow." + exit 0 + fi - name: Setup Node uses: actions/setup-node@v3 with: