Skip to content

Using a versioned soundness.yml as an external workflow does not propagate tag to checkout jobs #220

@kukushechkin

Description

@kukushechkin

When using tag to pin a specific version of the soundness.yml workflow, some jobs, for example docs-check, check out the main and not the provided tag. See this job as an example (I've also attached the logs to the Issue in case GitHub decides to clean it up).

The workflow in the other project wants to use a release version of the soundness.yml, which is behind the main branch:

  soundness:
    name: Soundness
    uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.4
    with:
      license_header_check_project_name: "Swift Metrics API"

However, the docs-check job still checks out the main branch:

Run actions/checkout@v4
/usr/bin/docker exec  b2c69d850351bc73b07dbc564ccd9bc9ba3fff5a9430b714c12e9130c89e42c4 sh -c "cat /etc/*release | grep ^ID"
Syncing repository: swiftlang/github-workflows
Getting Git version info
Temporarily overriding HOME='/__w/_temp/f4f26b8b-24d2-474c-831f-0093918a2f56' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /__w/swift-system-metrics/swift-system-metrics/github-workflows
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Determining the default branch
Fetching the repository
Determining the checkout info
/usr/bin/git sparse-checkout disable
/usr/bin/git config --local --unset-all extensions.worktreeConfig
Checking out the ref
  /usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
  Switched to a new branch 'main'
  branch 'main' set up to track 'origin/main'.
/usr/bin/git log -1 --format=%H
4905c1cb3acd9ee2886b1107f6d019ca6428d11c

logs_53654002849.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions