jiangxin/File exists action

Check file existence in a branch using GitHub API

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 27, 2021
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: jiangxin/file-exists-action@81a413fe02b9d9c4737c01bf2f566e12735a3285 # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repositoryRepository name with owner. For example, jiangxin/file-exists-actionno${{ github.repository }}
refThe branch, tag or SHA to search the file pathno""
pathFile path to find in the repositoryyes
typeExpected type of file in the repositorynofile
tokenPersonal access token (PAT) used to access GitHub APIno${{ github.token }}
namedescription
existsReturn true or false for the existence of the file in repository