[go: nahoru, domu]

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

PR to test the GH action that auto switches the target branch for dependabot PRs #2462

Closed
wants to merge 9 commits into from

Conversation

robyngit
Copy link
Member

⚠️ DO NOT MERGE THIS PR! ⚠️


This is a branch to test the new GitHub action introduced in #2457.

The action must use the pull_request_target trigger to run. The pull_request_target uses code from the target branch, not the PR branch. Therefore, to test this PR, we must target a branch that has the new GH action file in it.

The is being opened with the target test branch: fake-2456-test-gh-action. This test branch contains the workflow code, except that it has been modified to update the target branch of PRs from fake-2456-test-gh-action to develop instead of from main to develop.

robyngit and others added 9 commits June 19, 2024 11:33
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
To trigger action based on PR's head branch name instead base branch name, must use the github.head_ref context in a conditional. The branches property applies only to base branch.

Issue #2456
@github-actions github-actions bot changed the base branch from fake-2456-test-gh-action to develop June 19, 2024 17:09
@robyngit
Copy link
Member Author

It worked! See that the base branch was switched from fake-2456-test-gh-action to develop by the github-actions bot:

Screenshot 2024-06-19 at 1 11 02 PM

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.

None yet

1 participant