Skip to content

Fix getHoldingsSummary returning bad counts when too many contracts #69

Fix getHoldingsSummary returning bad counts when too many contracts

Fix getHoldingsSummary returning bad counts when too many contracts #69

Workflow file for this run

# On merging a PR, automatically backport it to other branches as requested in a comment on that PR
name: Auto-backport PRs to release branches
on:
pull_request:
types:
- closed
jobs:
get_backport_branches:
if: github.event.pull_request.merged == true
runs-on: self-hosted-docker-tiny
outputs:
branches: ${{ steps.get_backport_branches.outputs.result }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get backport branches
id: get_backport_branches
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
retries: 3
script: |
const script = require('.github/actions/scripts/do_backports.js');
return await script({github, context});
backport_prs:
needs: get_backport_branches
if: needs.get_backport_branches.outputs.branches != '[]' && needs.get_backport_branches.outputs.branches != ''
strategy:
matrix:
branch: ${{ fromJSON(needs.get_backport_branches.outputs.branches) }}
fail-fast: false
uses: ./.github/workflows/backport.yml
# Grant access to secrets in order to use the ssh key to pull the submodule
secrets: inherit
with:
base_branch: ${{ matrix.branch }}
pr_number: ${{ github.event.pull_request.number }}
# Request the original PR author to review the backport PR (since this was approved by others
# and merged already, we don't need to request review from them)
reviewer: ${{ github.event.pull_request.user.login }}