-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
job use "strategy:matrix" with gitea actions ,a dynamic array does not work #25179
Comments
The workflow filename: Build Service
on:
push:
branches: [main]
jobs:
pre-build:
runs-on: ubuntu-latest
outputs:
service: ${{ steps.filter.outputs.changes }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
filters: |
wall:
- wall/**
user:
- user/**
- basic/**'
- pom.xml
gateway:
- gateway/**
- basic/**'
- pom.xml
build:
needs: pre-build
strategy:
matrix:
service: ${{ fromJSON(needs.pre-build.outputs.service) }}
runs-on: ubuntu-latest
steps:
- name: echo
run: |
echo "构建${{ matrix.service }}"
echo "${{ needs.pre-build.outputs.service }}"
echo "${{ fromJSON(needs.pre-build.outputs.service) }}"
The point is strategy:
matrix:
service: ${{ fromJSON(needs.pre-build.outputs.service) }} Although Gitea can get the outputs after #24230, it doesn't evaluate expressions for And maybe it could also be fixed when #24603 is done. |
I am very much looking forward to the completion of this operation |
I think I have this issue too:
maybe related to nektos/act#927 |
Having the same issue, matrix seems to be empty when trying to pass data from a previous job into it. |
I think that there are at least 2 issues:
did a simple test by trying to use an output of a previous job in runs-on which does evaluate the template but did not work |
Description
In gitea actions, I used dorny/paths-filter as the method of file filtering and took the output as the
strategy:matrix
parameter for the next job, but instead of generating multiple jobs, gitea actions has and will only generate one job.This is my test on GitHub Actions and I didn't get this error,[t · tomomuy/monorepo-test@869b14d (github.com)](https://github.com/tomomuy/monorepo-test/actions/runs/5223469755)
Gitea Version
1.20rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
gitea actions
github actions
Git Version
No response
Operating System
Linux
How are you running Gitea?
docker: gitea/gitea:1.20.0-rc0
Database
SQLite
The text was updated successfully, but these errors were encountered: