This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
TouchLux.gentx #1771
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
name: CI | |
on: | |
pull_request: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 14.18.1 | |
- id: files | |
name: Check gentx | |
uses: jitterbit/get-changed-files@v1 | |
with: | |
format: 'json' | |
- run: | | |
readarray -t added_modified_files <<<"$(jq -r '.[]' <<<'${{ steps.files.outputs.added_modified }}')" | |
if [[ ${#added_modified_files[@]} > 1 ]]; then | |
echo "More than one file found" | |
exit 1 | |
fi | |
for added_modified_file in ${added_modified_files[@]}; do | |
node gentx_checker.js ${added_modified_file} | |
done |