https://github.com/ginokent/github-actions-should-gitignore
This GitHub Action checks that no files that should gitignore are committed.
https://github.com/ginokent/github-actions-should-gitignore
actions gitignore
Last synced: about 2 months ago
JSON representation
This GitHub Action checks that no files that should gitignore are committed.
- Host: GitHub
- URL: https://github.com/ginokent/github-actions-should-gitignore
- Owner: ginokent
- Created: 2021-10-29T23:40:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-05T21:29:05.000Z (over 4 years ago)
- Last Synced: 2025-03-02T15:47:38.603Z (over 1 year ago)
- Topics: actions, gitignore
- Language: Shell
- Homepage: https://github.com/marketplace/actions/should-gitignore
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-actions-should-gitignore
This GitHub Action checks that no files that should `gitignore` are committed.
By default, `.DS_Store` and `Thumbs.db` and the files listed in .gitignore in the repository root are detected.
## Example
`vim .github/workflows/should-gitignore.yml`
```yml
name: 'should-gitignore'
on: [push]
jobs:
should-gitignore:
name: Should gitignore
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: newtstat/github-actions-should-gitignore@v1.0.2
#with:
# gitignores: 'path/to/.gitignore path/to/2/.gitignore'
```