jiangxin/File exists action
Check file existence in a branch using GitHub API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 27, 2021
- License
- MIT
Pinned Snippet
uses: jiangxin/file-exists-action@81a413fe02b9d9c4737c01bf2f566e12735a3285 # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name with owner. For example, jiangxin/file-exists-action | no | ${{ github.repository }} |
| ref | The branch, tag or SHA to search the file path | no | "" |
| path | File path to find in the repository | yes | — |
| type | Expected type of file in the repository | no | file |
| token | Personal access token (PAT) used to access GitHub API | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| exists | Return true or false for the existence of the file in repository |