https://github.com/andstor/file-existence-action

:file_folder: :octocat: GitHub Action to check for file existence

https://github.com/andstor/file-existence-action

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary

Keywords

hacktoberfest

Keywords from Contributors

voxel
Last synced: 11 months ago · JSON representation

Repository

:file_folder: :octocat: GitHub Action to check for file existence

Basic Info
Statistics
  • Stars: 122
  • Watchers: 4
  • Forks: 35
  • Open Issues: 16
  • Releases: 5
Topics
hacktoberfest
Created over 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

file-existence-action

GitHub Action to check for file existence

build-test

This 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.

Usage

The following example workflow step will check for existence of the files: package.json, LICENSE, README.md, foo bar

yml - name: "Check file existence" uses: andstor/file-existence-action@v3 with: files: "package.json, LICENSE, README.md, foo, *.txt"

Options ⚙️

The following input variables options can/must be configured:

|Input variable|Necessity|Description|Default| |----|----|----|----| |files|Required|Comma separated string with paths to files and directories to check for existence. Supports glob paterns.|| |ignore_case|Optional|Ignore if a file name has upper or lower cases.|true| |follow_symbolic_links|Optional|Indicates whether to follow symbolic links.|true| |fail|Optional|Makes the Action fail on missing files.|false|

Outputs

  • files_exists: Outputs true if the file(s) exists, otherwise false.

Example

```yml name: "File existence check"

on: [push, pull_request]

jobs: file_existence: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4

  - name: Check file existence
    id: check_files
    uses: andstor/file-existence-action@v3
    with:
      files: "package.json, LICENSE, README.md"

  - name: File exists
    if: steps.check_files.outputs.files_exists == 'true'
    # Only runs if all of the files exists
    run: echo All files exists!

```

License

Copyright © 2020 André Storhaug

file-existence-action is licensed under the MIT License.

Owner

  • Name: André Storhaug
  • Login: andstor
  • Kind: user
  • Location: Trondheim 🇳🇴
  • Company: NTNU

🎓 CS PhD student @ Norwegian University of Science and Technology (NTNU)

GitHub Events

Total
  • Watch event: 2
  • Fork event: 1
  • Commit comment event: 1
Last Year
  • Watch event: 2
  • Fork event: 1
  • Commit comment event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 31
  • Total Committers: 6
  • Avg Commits per committer: 5.167
  • Development Distribution Score (DDS): 0.29
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
André Storhaug a****g@g****m 22
Ramin Gharib r****b@g****m 5
Victor B 3****l 1
HBiede 6****e 1
Daniel Schuba d****a@f****e 1
Anton Khitrenovich k****h@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 16
  • Total pull requests: 130
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 20 days
  • Total issue authors: 11
  • Total pull request authors: 7
  • Average comments per issue: 2.13
  • Average comments per pull request: 1.97
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 125
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • joergi (3)
  • nterbogt (1)
  • cardil (1)
  • jchang-iabbb (1)
  • jfoley15 (1)
  • kuhnroyal (1)
  • SamBobBarnes (1)
  • Julian88Tex (1)
  • raminqaf (1)
  • goffinf (1)
  • juls858 (1)
Pull Request Authors
  • dependabot[bot] (130)
  • raminqaf (2)
  • DaSchTour (1)
  • hbiede (1)
  • naorpeled (1)
  • lgtm-com[bot] (1)
  • joergi (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (130) javascript (127) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total docker downloads: 5
  • Total dependent packages: 0
  • Total dependent repositories: 3,242
  • Total versions: 9
github actions: andstor/file-existence-action

GitHub Action to check for file existence

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 3,242
  • Docker Downloads: 5
Rankings
Dependent packages count: 0.0%
Dependent repos count: 0.4%
Average: 1.4%
Stargazers count: 2.1%
Docker downloads count: 2.2%
Forks count: 2.4%
Last synced: about 1 year ago

Dependencies

package-lock.json npm
  • 305 dependencies
package.json npm
  • @types/chai ^4.3.0 development
  • @types/glob ^7.2.0 development
  • @types/mocha ^9.1.0 development
  • @types/node ^16.10.5 development
  • @types/tmp ^0.2.3 development
  • @typescript-eslint/parser ^5.8.1 development
  • @vercel/ncc ^0.31.1 development
  • @zeit/ncc ^0.20.5 development
  • chai ^4.3.6 development
  • eslint ^7.32.0 development
  • eslint-plugin-github ^4.3.5 development
  • eslint-plugin-jest ^26.1.1 development
  • js-yaml ^4.1.0 development
  • mocha ^9.2.1 development
  • prettier 2.5.1 development
  • ts-node ^10.5.0 development
  • typescript ^4.4.4 development
  • @actions/core ^1.6.0
  • glob ^7.2.0
  • tmp ^0.2.1
.github/workflows/build.yml actions
  • actions/checkout v1 composite
.github/workflows/versioning.yml actions
  • Actions-R-Us/actions-tagger latest composite
action.yml actions
  • dist/index.js node16 javascript