From 5edfdc74f51dd6235cbb7ce1a681d60f75ac324c Mon Sep 17 00:00:00 2001 From: DuoDuoJuZi <105411098+DuoDuoJuZi@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:47:40 +0800 Subject: [PATCH] fix: add username and token --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0a2501..2d0be7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,9 @@ jobs: - name: Build with Gradle run: ./gradlew shadowJar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_USERNAME: ${{ github.actor }} - name: Set outputs id: short_sha @@ -35,6 +38,7 @@ jobs: run: ./gradlew publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_USERNAME: ${{ github.actor }} - uses: actions/upload-artifact@v4.5.0 with: