We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commit
Hi.
After checking out two repositories, I'm trying to access the ref and commit outputs.
ref
- name: 'Checkout repository 1' id: 'checkout1' uses: 'actions/[email protected]' with: path: 'repository1' - name: 'Checkout repository 2' id: 'checkout2' uses: 'actions/[email protected]' with: repository: 'Organization/another-repository' ref: 'development' token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' path: 'repository2' - name: 'Print output' run: | Write-Output "Checkout 1 ref: ${{ steps.checkout1.outputs.ref }}" Write-Output "Checkout 1 commit: ${{ steps.checkout1.outputs.commit }}" Write-Output "Checkout 2 ref: ${{ steps.checkout2.outputs.ref }}" Write-Output "Checkout 2 commit: ${{ steps.checkout2.outputs.commit }}" shell: 'pwsh'
After executing the workflow, the commit output is empty in both steps.
Checkout 1 ref: refs/heads/development Checkout 1 commit: Checkout 2 ref: development Checkout 2 commit:
This doesn't seem to be an issue in the test-output job in .github/workflows/test.yml
test-output
.github/workflows/test.yml
Also, the ref output in checkout2 doesn't show the full name of the branch.
checkout2
The workflow is executed by a self-hosted runner on Windows Server.
Thanks in advance for your time.
The text was updated successfully, but these errors were encountered:
Does it work with a single repository job?
Sorry, something went wrong.
why bug
No branches or pull requests
Hi.
After checking out two repositories, I'm trying to access the
ref
andcommit
outputs.After executing the workflow, the
commit
output is empty in both steps.This doesn't seem to be an issue in the
test-output
job in.github/workflows/test.yml
Also, the
ref
output incheckout2
doesn't show the full name of the branch.The workflow is executed by a self-hosted runner on Windows Server.
Thanks in advance for your time.
The text was updated successfully, but these errors were encountered: