Skip to content

Actions step status display error when use composite action #31397

Open
@seepine

Description

@seepine

Description

The composite action .gitea/actions/action-docker-build-push/action.yml

name: 'Docker build and push'
description: 'Setup docker, build image and push'

inputs:
  password:
    description: 'Password or personal access token used to log against the Docker registry'
    required: false

runs:
  using: 'composite'
  steps:
    - run: "echo a: Set up QEMU"

    - run: |
        sleep 10
        echo 'sleep 10 end'

    - run: "echo b: Login to DockerHub"
      if: ${{ inputs.password != '' }}

    - run: |
        sleep 10
        echo 'c: Set up Docker BuildX'

The workflows file .gitea/workflows/build-docker.yml

name: Gitea Actions Demo
on: [push]
jobs:
  build-docker:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Docker build push
        uses: ./.gitea/actions/action-docker-build-push

      - run: echo The end

When the echo 'a: Set up QEMU' step run done, the status is success although there are still two more steps ahead.
And then the b: Login to DockerHub step skip, the status is skip.

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image image image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gitea-actionsrelated to the actions of Giteatype/bugtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions