Skip to content
New issue

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

Add and update ref and repository in GH stubs #150

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

driftingly
Copy link
Member

This PR adds and updates actions/checkout by including ref and repository.

ref: ${{ github.event.pull_request.head.ref }}: This specifies the branch or tag ref that should be checked out. In this case, it's dynamically set to the branch associated with the pull request that triggered the workflow.

repository: ${{ github.event.pull_request.head.repo.full_name }}: This specifies the repository to be checked out. It's dynamically set to the repository associated with the pull request that triggered the workflow. This is useful when the workflow is triggered by a pull request from a forked repository.

If you commit directly to the main branch instead of creating a pull request, the github.event.pull_request.head.ref value will not be available and the actions/checkout action will default to checking out the commit that triggered the workflow run.

@driftingly driftingly merged commit 8301311 into 3.x Jun 20, 2024
0 of 4 checks passed
@driftingly driftingly deleted the drift/add-ref-repository-stubs branch June 20, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant