镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Introduce file dependencies to jobs #90

Open

Description

@pacevedom

In order to run jobs efficiently, create dependencies for each job so that they only run if relevant files have been changed.
An example:

jobs:
  check-changes:
    runs-on: ubuntu-latest
    outputs:
      shell: ${{ steps.changed-files-sh.outputs.any_changed }}
      docker: ${{ steps.changed-files-docker.outputs.any_changed }}
    steps:
      - name: Check out code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Get changed shell files
        id: changed-files-sh
        uses: tj-actions/changed-files@v44
        with:
          files: |
            **/*.sh
      - name: Get changed container files
        id: changed-files-docker
        uses: tj-actions/changed-files@v44
        with:
          files: |
            **/*Containerfile*

Activity

  1. added theissue type on Oct 16, 2025
  2. self-assigned this
    on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions