Skip to content

Delete AV/Vector 35 Inc - Binary Ninja.cer #1

Delete AV/Vector 35 Inc - Binary Ninja.cer

Delete AV/Vector 35 Inc - Binary Ninja.cer #1

name: Move .cer Files to "All Certs Uncategorized"
on:
push:
paths:
- '**/*.cer' # Trigger on any .cer file
jobs:
move-certs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Move .cer files
run: |
target_dir="All Certs Uncategorized"
mkdir -p "$target_dir"
# Find all .cer files except those already in the target directory
for file in $(find . -name "*.cer" ! -path "./$target_dir/*"); do
filename=$(basename "$file")
if [ ! -f "$target_dir/$filename" ]; then
mv '${file}' '${target_dir}/'
else
echo "File $filename already exists in $target_dir. Skipping..."
fi
done
- name: Commit changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add "$target_dir/"
git commit -m "Move .cer files to All Certs Uncategorized"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}