Skip to content

Commit

Permalink
Merge pull request goharbor#207 from tylerauerbeck/fix-pull-request
Browse files Browse the repository at this point in the history
  • Loading branch information
Vad1mo authored Oct 20, 2024
2 parents ba0afc1 + cb4413c commit 90f544f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
with:
version: "latest"
verb: call
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }}
args: pull-request --source=. --github-token=${{ env.GITHUB_TOKEN }}
8 changes: 6 additions & 2 deletions dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ func (m *HarborCli) Lint(

}

func (m *HarborCli) PullRequest(ctx context.Context, directoryArg *dagger.Directory, githubToken string) {
goreleaser := goreleaserContainer(directoryArg, githubToken).WithExec([]string{"release", "--snapshot", "--clean"})
func (m *HarborCli) PullRequest(ctx context.Context,
// +optional
// +defaultPath="./"
source *dagger.Directory,
githubToken string) {
goreleaser := goreleaserContainer(source, githubToken).WithExec([]string{"release", "--snapshot", "--clean"})
_, err := goreleaser.Stderr(ctx)
if err != nil {
log.Printf("❌ Error occured during snapshot release for the recently merged pull-request: %s", err)
Expand Down

0 comments on commit 90f544f

Please sign in to comment.