Update common-tests.yaml
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
@@ -23,21 +23,21 @@ jobs:
|
|||||||
|
|
||||||
check_changes:
|
check_changes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes_detected: ${{ steps.filter.outputs.changed }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Check for changes in specific folder
|
- name: Filter paths
|
||||||
id: check_changes
|
id: filter
|
||||||
run: |
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
|
||||||
if git diff --exit-code HEAD^ HEAD -- charts/library/common; then
|
with:
|
||||||
echo "No changes detected in the folder."
|
list-files: json
|
||||||
echo "::set-output name=changes_detected::false"
|
filters: |
|
||||||
else
|
changed:
|
||||||
echo "Changes detected in the folder."
|
- 'charts/library/common/**'
|
||||||
echo "::set-output name=changes_detected::true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: Lint Common
|
name: Lint Common
|
||||||
|
|||||||
Reference in New Issue
Block a user