Skip to content

Commit

Permalink
feat: updated runWorkflow to store the PR URL to environment variable…
Browse files Browse the repository at this point in the history
… GH_PULL_REQUEST when present
  • Loading branch information
RogWilco committed Oct 11, 2024
1 parent 9e15342 commit 530d7d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package actions
import (
"context"
"fmt"
"os"
"strings"

"github.com/google/go-github/v63/github"
Expand Down Expand Up @@ -253,6 +254,11 @@ func finalize(inputs finalizeInputs) error {
}); err != nil {
return err
}

if pr != nil {
os.Setenv("GH_PULL_REQUEST", *pr.URL)
}

case environment.ModeDirect:
var releaseInfo *releases.ReleasesInfo
if !inputs.SourcesOnly {
Expand Down

0 comments on commit 530d7d2

Please sign in to comment.