Update sync.yaml to ignore certain files and directories #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: poetry export requirements.txt | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "requirements.txt" | |
- "poetry.lock" | |
- "*.md" | |
- "docs/**" | |
- ".env.example" | |
- "LICENSE" | |
- "Makefile" | |
- ".gitignore" | |
permissions: | |
contents: write | |
jobs: | |
export-requirements-txt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: divideprojects/poetry-export-requirements-action@v1 | |
with: | |
without-hashes: false | |
outfile-name: requirements.txt | |
- name: Commit report | |
run: | | |
git config --global user.name 'alan890104' | |
git config --global user.email '[email protected]' | |
git add requirements.txt | |
git commit -am "Sync requirements.txt from poetry.lock" | |
git push |