[main] fix: remove invalid secret condition in workflow

- Replace secrets condition with proper GitHub context condition
- Secrets cannot be used directly in if conditions
- Run integration tests only for push events or PRs from the same repo
This commit is contained in:
simple
2025-05-29 23:55:14 +09:00
parent 9aef7f43c4
commit 7391f5160d

View File

@ -85,7 +85,7 @@ jobs:
run: npm run build
- name: Run integration tests
if: ${{ secrets.GITLAB_TOKEN_TEST }}
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
run: |
echo "Running integration tests with real GitLab API..."
npm run test:integration || echo "No integration test script found"