Skip to content

Update .filelistignore #5

Update .filelistignore

Update .filelistignore #5

name: Generate and Commit File List on Tag
on:
push:
branches: [master]
permissions:
contents: write
jobs:
generate_and_commit_file_list:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: List all files in the repository, excluding based on .filelistignore
run: |
IGNORE_PATTERNS=$(cat .filelistignore | sed 's/^/-not -path \"/' | sed 's/$/\"/')
eval find . -type f $IGNORE_PATTERNS > file_list.txt
- name: Commit changes
run: |
git add file_list.txt
git commit -m "Update file_list.txt [skip ci]" || echo "No changes to commit"
git push origin master
- name: Upload file_list.txt as an artifact (optional)
uses: actions/upload-artifact@v4
with:
name: file_list
path: file_list.txt