Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci: Remove auto format code when formatting step fails (#2476)
Shankar Singh C8c80c008aa2d
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.ymlindex d417c4919a..96d5898ec7 100644--- a/.github/workflows/CI-pr.yml+++ b/.github/workflows/CI-pr.yml@@ -43,36 +43,17 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v3- with:- ref: ${{ github.event.pull_request.head.ref }}- repository: ${{ github.event.pull_request.head.repo.full_name }}-- name: Install Rustuses: dtolnay/rust-toolchain@masterwith:toolchain: nightlycomponents: rustfmt- - name: Check formatting for forked pull requests- if: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}+ - name: Check formattingshell: bashrun: cargo +nightly fmt --all --check- - name: Run formatter- if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}- shell: bash- run: |- cargo +nightly fmt --all- if ! git diff --exit-code --quiet -- crates; then- echo "::notice::Formatting check failed"- git config --local user.name 'github-actions[bot]'- git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'- git add crates- git commit --message 'chore: run formatter'- git push- fi-check-msrv:name: Check compilation on MSRV toolchainruns-on: ${{ matrix.os }}