Skip to content

Commit 25e92de

Browse files
committed
lint
1 parent dbca1e9 commit 25e92de

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/actions/install-all-build-libs/action.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,22 @@ runs:
8383
dir-path: './'
8484
keytar-host-mirror: ${{ inputs.keytar-host-mirror }}
8585
sqlite3-host-mirror: ${{ inputs.sqlite3-host-mirror }}
86+
87+
- name: Check if linting should run
88+
id: should-lint
89+
shell: bash
90+
run: |
91+
# Run linting for PR branches: fe/, be/, fe-be/, feature/, bugfix/
92+
# Skip linting for: ric/, latest, and other release branches
93+
if [[ "${{ github.ref_name }}" =~ ^(fe|be|fe-be|feature|bugfix)/ ]]; then
94+
echo "enabled=true" >> $GITHUB_OUTPUT
95+
echo "🔍 Linting enabled for branch: ${{ github.ref_name }}"
96+
else
97+
echo "enabled=false" >> $GITHUB_OUTPUT
98+
echo "⚡ Linting skipped for branch: ${{ github.ref_name }}"
99+
fi
100+
101+
- name: Run linting
102+
if: steps.should-lint.outputs.enabled == 'true'
103+
shell: bash
104+
run: yarn lint

0 commit comments

Comments
 (0)