Skip to content

Cannot make steps run sequentially with matrix and max-parallel = 1 #35561

@kenho811

Description

@kenho811

Description

Using gitea 1.24.6, I have the below workflow file.

name: Scheduled Assets Journal

on:
  schedule:
    - cron: '0 9 * * *'
  workflow_dispatch:

jobs:
  trigger:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 1
      fail-fast: false 
      matrix:
        config:
          - { stock_code: '00291', market: 'HK', investingdotcom_index_symbols: '[]' }
          - { stock_code: '09922', market: 'HK', investingdotcom_index_symbols: '[]' }
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          ref: develop

      - name: Run Single Assets Journal Action
        uses: ./.gitea/actions/run_single_assets_journal
        with:
          stock_code: ${{ matrix.config.stock_code }}
          market: ${{ matrix.config.market }}
          investingdotcom_index_symbols: ${{ matrix.config.investingdotcom_index_symbols }}

I want the the steps to run sequentially while using matrix syntax.

However, they are running in parallel. So it looks like that the trigger.strategy.max-parallel configuration is not working.

Image

Reference: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstrategymax-parallel

Gitea Version

1.24.6

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I am self-hosting gitea with act-runner

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions