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
When using tag to pin a specific version of the
soundness.ymlworkflow, some jobs, for exampledocs-check, check out themainand 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 themainbranch:However, the
docs-checkjob still checks out themainbranch:logs_53654002849.zip