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

Open
opened 2025-11-02 11:27:32 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @kenho811 on GitHub (Oct 1, 2025).

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

Originally created by @kenho811 on GitHub (Oct 1, 2025). ### 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. <img width="1771" height="908" alt="Image" src="https://github.com/user-attachments/assets/b026831a-ce94-4b9d-8215-eac0db41e576" /> 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
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 11:27:33 -06:00
Author
Owner

@kenho811 commented on GitHub (Oct 6, 2025):

Hi,

Any insight?

@kenho811 commented on GitHub (Oct 6, 2025): Hi, Any insight?
Author
Owner

@ChristopherHX commented on GitHub (Oct 8, 2025):

I do not think max-parallel is implemented right now

Gitea Actions currently duplicates the jobs when triggering the workflow, then they are all queued in parallel.

There are more things not (correctly) implemented.

@ChristopherHX commented on GitHub (Oct 8, 2025): I do not think max-parallel is implemented right now Gitea Actions currently duplicates the jobs when triggering the workflow, then they are all queued in parallel. There are more things not (correctly) implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14993