From dc991a95f715a9d2485a80c723e32ba68cbbfe95 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Wed, 9 Oct 2024 08:53:01 +0900 Subject: [PATCH] Fix autodoc refs --- tools/autodoc.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/autodoc.pl b/tools/autodoc.pl index 3401c4e..c118203 100644 --- a/tools/autodoc.pl +++ b/tools/autodoc.pl @@ -63,7 +63,9 @@ system("git", "remote", "set-url", "origin", "https://github-actions:$ENV{GITHUB_TOKEN}\@github.com/$ENV{GITHUB_REPOSITORY}") == 0 or die $!; system("git", "config", "--global", "user.name", "$ENV{GITHUB_ACTOR}") == 0 or die $!; system("git", "config", "--global", "user.email", "$ENV{GITHUB_ACTOR}\@users.noreply.github.com") == 0 or die $!; + system("git", "switch", "-c", "autodoc-pr-$ENV{GITHUB_HEAD_REF}") == 0 or die $!; system("git", "commit", "-F", $commit_message_file->filename, @files) == 0 or die $!; - system("git", "push", "origin", "HEAD:$ENV{GITHUB_REF}") == 0 or die $!; + system("git", "push", "origin", "HEAD:autodoc-pr-$ENV{GITHUB_HEAD_REF}") == 0 or die $!; + system("gh", "pr", "create", "--base", "develop/$link_ref", "--fill") == 0 or die $!; } }