Skip to content

Commit

Permalink
remove status check
Browse files Browse the repository at this point in the history
  • Loading branch information
khaliqgant committed Sep 26, 2024
1 parent c11e720 commit 5f50db6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/push-flows-to-nango-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,38 +75,6 @@ jobs:
git commit -m "Automated commit updating flows.yaml from the integration-templates repo"
echo "Changes committed."
- name: Wait for required status checks to pass
if: steps.changes.outputs.any_changed == 'true'
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
echo "Waiting for required status checks to pass..."
echo "Fetching required status checks from the branch protection settings..."
checks=$(gh api repos/NangoHQ/nango/branches/master/protection/required_status_checks | jq -r '.contexts[]')
if [ -z "$checks" ]; then
echo "No required status checks found or failed to fetch them."
exit 1
else
echo "Required status checks: $checks"
fi
# Loop through each required check and watch its status
for check in $checks; do
echo "Waiting for status check: $check"
gh run watch --repo NangoHQ/nango --check $check --exit-status
exit_code=$?
if [ $exit_code -ne 0 ]; then
echo "Error: Status check '$check' failed or did not complete successfully."
exit 1
else
echo "Status check '$check' passed."
fi
done
echo "All required status checks have passed."
- name: Push changes to target repo
if: steps.changes.outputs.any_changed == 'true'
working-directory: nango
Expand Down

0 comments on commit 5f50db6

Please sign in to comment.