Skip to content

Commit

Permalink
fixup! chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
spicyfalafel committed Sep 19, 2024
1 parent 69a06e2 commit 572c431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Detect file changes
id: detect
id: detect-changes
run: |
# Fetch all changes between commits
git fetch --prune --unshallow || true
Expand All @@ -32,25 +32,17 @@ jobs:
# Check if TypeScript or Python files have changed
if echo "$CHANGED_FILES" | grep -qE '^test/aidbox_sdk/snapshots/typescript/|^resources/sdk/typescript/'; then
echo "typescript-changed=true" >> $GITHUB_OUTPUT
else
echo "typescript-changed=false" >> $GITHUB_OUTPUT
fi
if echo "$CHANGED_FILES" | grep -qE '^test/aidbox_sdk/snapshots/python/|^resources/sdk/python/'; then
echo "python-changed=true" >> $GITHUB_OUTPUT
else
echo "python-changed=false" >> $GITHUB_OUTPUT
fi
- name: Set outputs
id: set-outputs
run: |
echo "typescript-changed=${{ env.typescript-changed }}" >> $GITHUB_OUTPUT
echo "python-changed=${{ env.python-changed }}" >> $GITHUB_OUTPUT
lint-typescript:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.typescript-changed == 'true' }}
# env:
# CHANGED: ${{ needs.detect-changes.outputs.typescript-changed }}
if: ${{ needs.detect-changes.outputs.typescript-changed }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion resources/sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
setup(
name="aidbox",
version="0.0.1",

description="",
python_requires=">=3.7",
package_data={"": ["py.typed"]},
Expand Down

0 comments on commit 572c431

Please sign in to comment.