Skip to content

Commit

Permalink
chore(ci): reworked ignoring files logic; (#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Nov 14, 2023
1 parent 30873ee commit 0c9d886
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -28,11 +28,33 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
persist-credentials: true
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Check changes
id: changed-ignored
uses: tj-actions/changed-files@v40
with:
files: |
**.md
sandbox/**
examples/**
.github/**
templates/**
bin/**
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
if: steps.changed-ignored.outputs.only_modified == 'false'
- run: npm ci
if: steps.changed-ignored.outputs.only_modified == 'false'
- run: npm test
if: steps.changed-ignored.outputs.only_modified == 'false'

0 comments on commit 0c9d886

Please sign in to comment.