diff --git a/.github/workflows/encrypt-and-upload-model.yml b/.github/workflows/encrypt-and-upload-model.yml index b8df4aa..83fa7d3 100644 --- a/.github/workflows/encrypt-and-upload-model.yml +++ b/.github/workflows/encrypt-and-upload-model.yml @@ -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 "github-actions@github.com" 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 diff --git a/model_versions.json b/model_versions.json index 98b1aa1..0f7d897 100644 --- a/model_versions.json +++ b/model_versions.json @@ -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" } \ No newline at end of file