Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Workflow to read from the head instead as checking against main on merge will always result in nothing #18

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deployment Pipeline

on:
pull_request:
push:
branches: [main]
types: [closed]

jobs:
connector-list:
Expand All @@ -19,7 +18,7 @@ jobs:
run: |
CONNECTORS=()
for connector in $(ls connectors);do
if [ "$( git diff --name-only origin/main... -- connectors/${connector} )" != "" ] || [ "$( git diff --name-only origin/main... -- base )" != "" ] || [ "${{ vars.BUILD_ALL_CONNECTORS }}" == "true" ];then
if [ "$( git diff --name-only HEAD~1 -- connectors/${connector} )" != "" ] || [ "$( git diff --name-only HEAD~1 -- base )" != "" ] || [ "${{ vars.BUILD_ALL_CONNECTORS }}" == "true" ];then
CONNECTORS+=("${connector}")
fi
done
Expand Down Expand Up @@ -50,7 +49,6 @@ jobs:
snyk monitor --all-projects --policy-path=.snyk

build-and-deploy:
if: ${{ github.event.pull_request.merged }}
name: connector ${{ matrix.connector }}
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
Loading