Skip to content

Commit

Permalink
s3 workflow change-2
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Nov 24, 2024
1 parent f855134 commit 2112cd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/encrypt-and-upload-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@ jobs:
fi
done
- name: Commit model deletions
- name: Commit and push model deletions
if: env.changed_models != ''
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git
git add -u
git commit -m "Delete updated models from repo after S3 upload"
# Add and commit changes (deleted models)
git add models/
git commit -m "Delete uploaded models from repository"
# Push changes back to the repository
git push
4 changes: 2 additions & 2 deletions model_versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"antispoofing.onnx": "1.0.0",
"yolo_face_detection.onnx": "1.0.0"
"antispoofing.onnx": "1.0.1",
"yolo_face_detection.onnx": "1.0.1"
}

0 comments on commit 2112cd8

Please sign in to comment.