From d81be00b5325bf635d7d3a32d1b4cfa06eddfbed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Oct 2025 01:48:08 +0000 Subject: [PATCH 1/4] Initial plan From fea9d88fe0361389c7ce0c96377202e8371c97a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Oct 2025 01:51:25 +0000 Subject: [PATCH 2/4] Add artifact link posting in PRs following winboat approach Co-authored-by: gliptak <50109+gliptak@users.noreply.github.com> --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdd1ae7..e1f224e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: ci +permissions: + contents: write + pull-requests: write + on: push: branches: @@ -28,10 +32,18 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v4 + id: upload-artifact if: startsWith(github.ref , 'refs/tags/v') == false with: name: hcl2json path: dist/* + - name: Post artifact link + if: github.event_name == 'pull_request' + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.number }} + body: | + Build artifacts: [${{ steps.upload-artifact.outputs.artifact-url }}](${{ steps.upload-artifact.outputs.artifact-url }}) - uses: goreleaser/goreleaser-action@v6 if: startsWith(github.ref , 'refs/tags/v') with: From eeb3bd79aa14389588233a2933cd7bc936e5151a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Oct 2025 01:53:14 +0000 Subject: [PATCH 3/4] Add condition to ensure artifact upload runs before posting link Co-authored-by: gliptak <50109+gliptak@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1f224e..af7a7ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: name: hcl2json path: dist/* - name: Post artifact link - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && startsWith(github.ref, 'refs/tags/v') == false uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ github.event.number }} From 2a522626eefb9378da2a78df7511fc3b8cf2d6f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Oct 2025 01:54:36 +0000 Subject: [PATCH 4/4] Remove redundant condition from artifact link posting step Co-authored-by: gliptak <50109+gliptak@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af7a7ce..e1f224e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: name: hcl2json path: dist/* - name: Post artifact link - if: github.event_name == 'pull_request' && startsWith(github.ref, 'refs/tags/v') == false + if: github.event_name == 'pull_request' uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ github.event.number }}