Skip to content

chore: Configure Renovate #68

chore: Configure Renovate

chore: Configure Renovate #68

name: Connector Validation
defaults:
run:
shell: bash
on:
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
name: Validate connector structure
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
connectors/*
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Connectors validation
run: |
ids=(${{ steps.changed-files.outputs.all_changed_files }});
if [ ${#ids[@]} -eq 0 ]; then
echo "No updated connector"
else
cd ${{ github.workspace }}/scripts/
id="${ids[@]}";
go run . "validate-connector" ${{ github.workspace }} connector.schema.json ${id// /" "}
cd ${{ github.workspace }}
fi