forked from port-labs/ocean
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into clickup-integrations
- Loading branch information
Showing
217 changed files
with
17,804 additions
and
15,528 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Detect Changes | ||
on: | ||
workflow_call: | ||
outputs: | ||
matrix: | ||
value: ${{ jobs.detect-changes.outputs.matrix }} | ||
description: "Matrix of changed integrations per git commit changes" | ||
|
||
jobs: | ||
detect-changes: | ||
name: Detect changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get list of changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v44.5.7 | ||
- name: Set matrix | ||
id: set-matrix | ||
run: | | ||
folders_to_ignore="integrations/*/LICENSE.md|integrations/*/README.md|integrations/*/CONTRIBUTING.md|integrations/*/CHANGELOG.md" | ||
changed_folders=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" \ | ||
| tr ' ' '\n' | grep '^integrations/' | grep -v '^($folders_to_ignore)' \ | ||
| egrep -v '_infra' \ | ||
| cut -d'/' -f2 | sort | uniq) | ||
if [ -z "$changed_folders" ]; then | ||
changed_folders="" | ||
fi | ||
folders_to_ignore="integrations/|scripts/|assets/|docs/|LICENSE.md|README.md|CONTRIBUTING.md|CHANGELOG.md" | ||
other_changes=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep -v '^($folders_to_ignore)' | wc -l) | ||
if [ "$other_changes" -ne 0 ]; then | ||
# Add the root directory to the matrix if there are changes outside the integrations folder | ||
changed_folders=$(echo -e "$changed_folders\n.") | ||
fi | ||
matrix=$(echo "$changed_folders" | jq -R -s -c 'split("\n") | map(select(length > 0))') | ||
echo "matrix=$matrix" >> $GITHUB_OUTPUT |
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
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
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
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
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
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
Oops, something went wrong.