mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
chore(ci): reworked ignoring files logic; (#6079)
This commit is contained in:
@@ -28,11 +28,33 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
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
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: npm
|
cache: npm
|
||||||
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user