From 1547ea84c6ddf039e64ca28b043f8bf475cc64a8 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:54:19 +0800 Subject: [PATCH 1/2] Comment build artifact in PR --- .github/workflows/generic.test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generic.test.yml b/.github/workflows/generic.test.yml index e7476034..1cb1af6b 100644 --- a/.github/workflows/generic.test.yml +++ b/.github/workflows/generic.test.yml @@ -9,7 +9,7 @@ on: type: string jobs: - test: + test-and-artifact: runs-on: ubuntu-latest permissions: contents: read @@ -38,3 +38,13 @@ jobs: with: name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }} path: build/libs/${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}.jar + + comment-artifact: + needs: test-and-artifact + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: benwoo1110/artifact-comment-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} From 17d376d4d4484a871f9faa4f6fc00668fb514248 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:54:38 +0800 Subject: [PATCH 2/2] Bump upload artifact action to v4 --- .github/workflows/generic.test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generic.test.yml b/.github/workflows/generic.test.yml index 1cb1af6b..3713010b 100644 --- a/.github/workflows/generic.test.yml +++ b/.github/workflows/generic.test.yml @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Artifact output - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }} path: build/libs/${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}.jar