name: List Target Branches on: workflow_call: # Map the workflow outputs to job outputs outputs: branches: description: "List of target branches" value: ${{ jobs.list-target-branches.outputs.matrix }} jobs: list-target-branches: runs-on: ubuntu-latest outputs: matrix: ${{ steps.get-branch-list.outputs.matrix }} steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 - name: Set up Python 3.12 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip pip cache purge pip install .[dev] - id: get-branch-list run: | python -m detection_rules dev utils get-branches echo "::set-output name=matrix::$(cat ./detection_rules/etc/target-branches.yaml)"