• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“ :octocat: GitHub Action to check for file existence

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

- name: "Check file existence"
  uses: andstor/file-existence-action@v2
  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

name: "File existence check"

on: [push, pull_request]

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

      - name: Check file existence
        id: check_files
        uses: andstor/file-existence-action@v2
        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.

More Repositories

1

copycat-action

©️:octocat: GitHub Action for copying files to other repositories
Shell
97
star
2

jsdoc-action

πŸ“– :octocat:GitHub Action to build JSDoc documentation
JavaScript
66
star
3

voxelizer

πŸ‘Ύ Voxelization of 3D models
JavaScript
46
star
4

three-voxel-loader

πŸ–ΌοΈ three.js plugin for loading voxel data
JavaScript
27
star
5

verified-smart-contracts

πŸ“„ Verified Ethereum Smart Contract dataset
Python
10
star
6

jekyll-theme-paper

πŸ“– Paper is a Jekyll theme for project documentation
CSS
7
star
7

file-reader-action

πŸ“„ :octocat: GitHub Action to read the contents of a file
TypeScript
7
star
8

smart-contract-downloader

πŸ’Ύ Download smart contracts from etherscan.io
Python
6
star
9

voxelizer-desktop

πŸ‘Ύ Easy 3D model voxelization desktop app
JavaScript
6
star
10

binvox

πŸ“„ Parser and builder for BINVOX voxel file format
JavaScript
4
star
11

verified-smart-contracts-audit

πŸ› Verified smart contract dataset with vulnerability labeling
3
star
12

mouse-controller

🐭 Node.js C++ Addon for emulating mouse behavior
C++
3
star
13

cross-chain-smart-contract-vulnerability-detection-methods-slr

πŸ“„ A systematic literature review of cross-chain smart contract vulnerability detection methods
TeX
3
star
14

bachelor-thesis

πŸ“„ My Bachelor's Thesis in Computer Engineering, written at the Norwegian University of Science and Technology (NTNU)
TeX
3
star
15

clover2lcov

Convert Clover reports to LCOV reports
JavaScript
2
star
16

clover2lcov-action

:octocat: GitHub Action for converting Clover files to LCOV reports
JavaScript
2
star
17

smart-contract-code-generation

🧠 Smart contract code generation based on large-scale transformer-based language model.
Python
1
star
18

chitcha

πŸ’¬ A simple chat application built with Node.js and ws
JavaScript
1
star
19

literature-kiosk

JavaFX literature kiosk/register application
Java
1
star
20

predator-prey-simulator

🦊 🐰 3D simulator of predators and prey interacting
Java
1
star
21

active-cache

πŸ“¦β³ A simple caching object with TTL
JavaScript
1
star
22

diffuse

3D simulator for simulating diffusion
JavaScript
1
star
23

layers-wp-block

A layer block for the WordPress block editor (Gutenberg)
JavaScript
1
star
24

master-thesis

πŸ“„ My Master's Thesis in Computer Science, written at the Norwegian University of Science and Technology (NTNU)
TeX
1
star
25

the-pile-github

The Pile dataset sorted by programming language
Python
1
star