--- name: Cog release on: workflow_call: inputs: ref: type: string required: false default: "" jobs: release: name: Create release runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 with: fetch-depth: 0 ref: ${{ inputs.ref == '' && github.sha || inputs.ref }} - run: | git config user.name gitea-bot git config user.email bot@git.palkoi.net git config --global user.email bot@git.palkoi.net git config --global user.name gitea-bot - name: Semver release uses: cocogitto/cocogitto-action@v4 id: release with: command: bump args: --auto git-user: "gitea-bot" git-user-email: "bot@git.palkoi.net" - name: Generate Changelog id: changelog uses: cocogitto/cocogitto-action@v4 with: command: changelog args: --at ${{ steps.release.outputs.version }} -t full_hash - name: Upload github release uses: softprops/action-gh-release@v2 with: body: ${{ steps.changelog.outputs.stdout }} tag_name: ${{ steps.release.outputs.version }}