Merge development to release/1.0.0 #191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# All the packages, even private ones, must include a set of basic files to | |
# perform correctly. This workflow checks the existence of those files when | |
# pushing or submitting a PR to specific branches. | |
# | |
name: 'File(s) Existence' | |
on: | |
push: | |
branches: | |
- master | |
- release/** | |
pull_request: | |
branches: | |
- release/** | |
jobs: | |
file_existence: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Check packages main files existence | |
id: check_files | |
uses: andstor/[email protected] | |
with: | |
# Comma separated string with paths to files and directories to check for existence. | |
# Supports glob paterns (https://github.com/isaacs/node-glob). | |
files: 'packages/**/package.json, packages/**/README.md, packages/**/CHANGELOG.md, packages/**/LICENSE, packages/**/.gitignore' | |
# Ignore if a file name has upper or lower cases. | |
ignore_case: true | |
# Indicates whether to follow symbolic links. | |
follow_symbolic_links: true | |
# Makes the Action fail on missing files. | |
allow_failure: true | |
# ******** NOTE ******** | |
# "files_exists" outputs true if the file(s) exists, otherwise false. | |
# | |
- name: Successful result | |
if: steps.check_files.outputs.files_exists == 'true' | |
# Only runs if all of the files exists. | |
run: echo All files exists. | |
- name: Unsuccessful result | |
if: steps.check_files.outputs.files_exists != 'true' | |
# Only runs if some of the files don't exist. | |
run: echo Looks like one or more files are missing. |