forked from cloudquery/cloudquery
-
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 'cloudquery:main' into main
- Loading branch information
Showing
202 changed files
with
28,752 additions
and
1,998 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
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,48 @@ | ||
name: Delete Vercel Deployments from PR Comments | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
delete_vercel_deployments: | ||
runs-on: ubuntu-latest | ||
if: ${{ !startsWith(github.event.pull_request.head.ref, 'release') }} | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
steps: | ||
- name: Delete Vercel Deployments from PR Comments | ||
run: | | ||
PR_NUMBER=${{ github.event.pull_request.number }} | ||
REPO=${{ github.repository }} | ||
echo "Fetching comments for PR #$PR_NUMBER" | ||
comments=$(gh api -X GET /repos/$REPO/issues/$PR_NUMBER/comments --paginate) | ||
# Iterate through each comment | ||
echo "$comments" | jq -c '.[]' | while read -r comment; do | ||
body=$(echo "$comment" | jq -r '.body') | ||
# Check if the comment contains "Unique Vercel deployment URL" | ||
if echo "$body" | grep -q "Unique Vercel deployment URL"; then | ||
echo "Found comment with deployment URL" | ||
# Extract the deployment URL from the next line | ||
deployment_url=$(echo "$body" | awk '/Unique Vercel deployment URL:/ {getline; print $1}') | ||
if [ -n "$deployment_url" ]; then | ||
echo "Attempting to delete deployment: $deployment_url" | ||
# Delete the deployment using Vercel CLI | ||
if vercel remove "$deployment_url" --token $VERCEL_TOKEN --scope $VERCEL_ORG_ID --yes; then | ||
echo "Successfully deleted deployment: $deployment_url" | ||
else | ||
echo "Failed to delete deployment: $deployment_url" | ||
fi | ||
else | ||
echo "No deployment URL found in the comment" | ||
fi | ||
fi | ||
done | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_CQ_BOT }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Destination Plugin SQLite-Python Workflow | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "plugins/destination/sqlite-python/**" | ||
- ".github/workflows/dest_sqlite_python.yml" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "plugins/destination/sqlite-python/**" | ||
- ".github/workflows/dest_sqlite_python.yml" | ||
|
||
jobs: | ||
plugins-destination-sqlite-python: | ||
timeout-minutes: 30 | ||
name: "plugins/destination/sqlite-python" | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./plugins/destination/sqlite-python | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Check formatting | ||
run: make fmt-check | ||
- | ||
# Required for the package command tests to work | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run tests | ||
run: make test | ||
|
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.