From cd9815dfb3de390b0f9bd97ffa467c89da6ee84f Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Sun, 4 Jan 2026 02:09:45 +0200 Subject: [PATCH] fix(cocogitto/cocogitto-action): checkout head sha --- .gitea/workflows/cog-release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cog-release.yml b/.gitea/workflows/cog-release.yml index 0b9abad..aba511a 100644 --- a/.gitea/workflows/cog-release.yml +++ b/.gitea/workflows/cog-release.yml @@ -5,11 +5,11 @@ on: branches: - main workflow_call: - # inputs: - # check-latest-tag-only: - # type: boolean - # required: false - # default: true + inputs: + ref: + type: string + required: false + default: "" jobs: release: @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ inputs.ref == '' && github.sha || inputs.ref }} - run: | git config user.name gitea-bot @@ -47,5 +47,5 @@ jobs: - name: Upload github release uses: softprops/action-gh-release@v2 with: - body_path: ${{ steps.changelog.outputs.stdout }} + body: ${{ steps.changelog.outputs.stdout }} tag_name: ${{ steps.release.outputs.version }}