Closed bangank36 closed 1 year ago
Missing the author identity https://github.com/WordPress/gutenberg/blob/ed5813c1325b8d6a09df7dd1bda00a8d90faf820/.github/workflows/build-plugin-zip.yml#L101
Seems to be the issue with my local, something with permissions
Setup tmate session
Web shell
for web-based terminal for paste the ssh
command below into local terminal (nit: press q
to skip to the command screen)
git branch
returns * (HEAD detached from pull/11/merge)
git show HEAD
did not return the latest commit in PRgit show HEAD~{commit_number}
not return correct
detached HEAD
is the main issue! By default Checkout action only checkout 01 commit, to fetch all branches and commits use https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branchespull_request_target
run npm run docs:build
will be against the target branch by default ?!The new commit has been created, but there is some extra suspicious merged branch
git checkout ${{ github.head_ref }}
caused the merged branch - it seems like the default behaviorcheckout action performing merge commit from incorrect base SHA
Current test PR failed because wrong base ( trunk )
Assume automation/test-docs-build-1
is head branch
automation/rebuild-docs-manifest
is based branch
pull_request_target | pull_request | |
---|---|---|
github.head_ref | automation/test-docs-build-1 | automation/test-docs-build-1 |
github.ref | refs/heads/automation/rebuild-docs-manifest | refs/pull/11/merge |
github.event.pull_request.head.ref | automation/test-docs-build-1 | automation/test-docs-build-1 |
github.event.pull_request.base.ref | automation/rebuild-docs-manifest | automation/rebuild-docs-manifest |
ref
instead of fetching whole repo? https://github.com/Expensify/App/blob/7cae1dcbf1994703fe88667a9a5c45f4d6e2d844/.github/workflows/createNewVersion.yml#L67ref
value, note that when the ref
is null it is default to single commit sha , thus leads to the detached HEAD state?Staled
Summary
Q & A
What is the detailed step for submitting new docs
Create a new document
What blocks the PRs when the manifest.json missing
npm run check-local-changes
, which is handled on this file check-local-changesReference