Skip to content

Commit 317d428

Browse files
committed
initial
1 parent 6fb4eec commit 317d428

File tree

3 files changed

+86
-3
lines changed

3 files changed

+86
-3
lines changed

.gitattributes

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
version https://git-lfs.github.com/spec/v1
2-
oid sha256:422394877ba90a6b5fc9bca63537e1db51c05a41ce2b4f91f97fc4cac13a7d6a
3-
size 507
1+
# Xet-specific file handling
2+
# Media files
3+
*.mp4 filter=xet diff=xet merge=xet -text
4+
*.mov filter=xet diff=xet merge=xet -text
5+
*.avi filter=xet diff=xet merge=xet -text
6+
7+
# ML model files
8+
*.pt filter=xet diff=xet merge=xet -text
9+
*.pth filter=xet diff=xet merge=xet -text
10+
*.onnx filter=xet diff=xet merge=xet -text
11+
# Large datasets
12+
*.csv filter=xet diff=xet merge=xet -text
13+
*.parquet filter=xet diff=xet merge=xet -text
14+
# Images (only if they're expected to be large)
15+
*.png filter=xet diff=xet merge=xet -text
16+
*.jpg filter=xet diff=xet merge=xet -text
417
*.psd !text !filter !merge !diff
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '24 14 * * 3'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'javascript' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v1
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Metadata Files
2+
on:
3+
workflow_dispatch:
4+
push:
5+
paths:
6+
- 'README.md'
7+
jobs:
8+
update-metadata:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Update metadata files
13+
run: |
14+
REPO_NAME="${GITHUB_REPOSITORY#*/}"
15+
REPO_DESC=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
16+
https://api.github.com/repos/$GITHUB_REPOSITORY | jq -r .description)
17+
18+
# Update .zenodo.json
19+
if [ -f .zenodo.json ]; then
20+
jq --arg title "$REPO_NAME" '.title = $title' .zenodo.json > .zenodo.json.tmp
21+
jq --arg desc "$REPO_DESC" '.description = $desc' .zenodo.json.tmp > .zenodo.json
22+
fi
23+
24+
# Similar approach for CITATION.cff
25+
# [Additional code to update CITATION.cff]
26+
27+
git config --global user.name "GitHub Action"
28+
git config --global user.email "action@github.com"
29+
git add .zenodo.json CITATION.cff
30+
git commit -m "Update metadata with repository info" || echo "No changes to commit"
31+
git push
32+

0 commit comments

Comments
 (0)