fix(cocogitto/cocogitto-action): checkout head sha

This commit is contained in:
2026-01-04 02:09:45 +02:00
parent 50ff19fae2
commit cd9815dfb3

View File

@@ -5,11 +5,11 @@ on:
branches: branches:
- main - main
workflow_call: workflow_call:
# inputs: inputs:
# check-latest-tag-only: ref:
# type: boolean type: string
# required: false required: false
# default: true default: ""
jobs: jobs:
release: release:
@@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
- run: | - run: |
git config user.name gitea-bot git config user.name gitea-bot
@@ -47,5 +47,5 @@ jobs:
- name: Upload github release - name: Upload github release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
body_path: ${{ steps.changelog.outputs.stdout }} body: ${{ steps.changelog.outputs.stdout }}
tag_name: ${{ steps.release.outputs.version }} tag_name: ${{ steps.release.outputs.version }}