Skip to content

Commit

Permalink
other: #238 🔹 ci improvement (#239)
Browse files Browse the repository at this point in the history
* test: #238 ✏️ check fmt and lint on actions

* other: #238 🔹 check if original repository on before deploy workflow

* other: #238 🔹 fix check.yml format
  • Loading branch information
ubugeeei authored Jan 8, 2024
1 parent 432720c commit 1eb2bb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1eb2bb9

Please sign in to comment.