{"id":13581380,"url":"https://github.com/andstor/file-existence-action","last_synced_at":"2025-04-06T06:12:05.158Z","repository":{"id":37796259,"uuid":"243778488","full_name":"andstor/file-existence-action","owner":"andstor","description":":file_folder: :octocat: GitHub Action to check for file existence","archived":false,"fork":false,"pushed_at":"2024-04-10T17:07:58.000Z","size":414,"stargazers_count":117,"open_issues_count":16,"forks_count":33,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-15T13:14:05.883Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/file-existence","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andstor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-28T14:16:08.000Z","updated_at":"2024-06-18T12:22:01.148Z","dependencies_parsed_at":"2024-01-16T20:53:47.265Z","dependency_job_id":"e0899fd8-6249-4e44-9262-73c59b998ca6","html_url":"https://github.com/andstor/file-existence-action","commit_stats":{"total_commits":23,"total_committers":5,"mean_commits":4.6,"dds":"0.17391304347826086","last_synced_commit":"20b4d2e596410855db8f9ca21e96fbe18e12930b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Ffile-existence-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Ffile-existence-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Ffile-existence-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Ffile-existence-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andstor","download_url":"https://codeload.github.com/andstor/file-existence-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933375,"owners_count":20857054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-08-01T15:02:00.995Z","updated_at":"2025-04-06T06:12:05.137Z","avatar_url":"https://github.com/andstor.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# file-existence-action\n\n\u003e GitHub Action to check for file existence\n\n![build-test](https://github.com/andstor/file-existence-action/workflows/build/badge.svg)\n\nThis is a GitHub Action to check for the existence of files. It can be used for conditionally running workflow steps based on file(s) existence.\n\n## Usage\n\nThe following example [workflow step](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow) will check for existence of the files: `package.json`, `LICENSE`, `README.md`, `foo` `bar`\n\n```yml\n- name: \"Check file existence\"\n  uses: andstor/file-existence-action@v3\n  with:\n    files: \"package.json, LICENSE, README.md, foo, *.txt\"\n```\n\n## Options ⚙️\n\nThe following input variables options can/must be configured:\n\n|Input variable|Necessity|Description|Default|\n|----|----|----|----|\n|`files`|Required|Comma separated string with paths to files and directories to check for existence. Supports [glob paterns](https://github.com/isaacs/node-glob).||\n|`ignore_case`|Optional|Ignore if a file name has upper or lower cases.|`true`|\n|`follow_symbolic_links`|Optional|Indicates whether to follow symbolic links.|`true`|\n|`fail`|Optional|Makes the Action fail on missing files.|`false`|\n\n## Outputs\n- `files_exists`: Outputs `true` if the file(s) exists, otherwise `false`.\n\n## Example\n\n```yml\nname: \"File existence check\"\n\non: [push, pull_request]\n\njobs:\n  file_existence:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Check file existence\n        id: check_files\n        uses: andstor/file-existence-action@v3\n        with:\n          files: \"package.json, LICENSE, README.md\"\n\n      - name: File exists\n        if: steps.check_files.outputs.files_exists == 'true'\n        # Only runs if all of the files exists\n        run: echo All files exists!\n```\n\n## License\n\nCopyright © 2020 [André Storhaug](https://github.com/andstor)\n\nfile-existence-action is licensed under the [MIT License](https://github.com/andstor/file-existence-ation/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandstor%2Ffile-existence-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandstor%2Ffile-existence-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandstor%2Ffile-existence-action/lists"}