Skip to content

Actions: Job with an "if: always()" are skipped #27906

Closed
@sleeperss

Description

@sleeperss

Description

Jobs with an if: always() statement that depends on a skipped one are also skipped.

on: 
  push:
    branches:
      - master

jobs:
  job1:
    name: Skipped job
    if: false
    steps:
      - run: echo "I am skipped"

  job2:
    name: Mustn't be skipped
    needs: job1
    if: always()
    steps:
      - run: echo "I should have been displayed :'("

image

This makes intermediate optional job impossible

Gitea Version

1.21.0+rc2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

ubuntu

How are you running Gitea?

container from docker hub on linux

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions