Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/create-release-tag.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- staging
workflow_call:
inputs:
github-action-repo:
description: 'The Action Repository (If using a forked repository)'
required: false
type: string
default: 'deepworks-net/github.actions'
draft:
description: 'Create as draft release'
required: false
Expand Down Expand Up @@ -34,7 +39,7 @@ jobs:
fetch-depth: 0

- name: Calculate Next Version
uses: ${{ github.action_path }}/actions/version_calculation@main
uses: ${{ inputs.github-action-repo }}/github.actions/actions/version_calculation@main
id: version

- name: Draft Release
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/version-calculation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Version Calculation

on:
push:
branches:
- main # or master, depending on your default branch
workflow_dispatch: # allows manual triggering
workflow_call:
secrets:
token:
description: 'GitHub Repository Token'
required: false
jobs:
calculate-version:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Important: fetch all history and tags

- name: Calculate next version
id: version
uses: deepworks-net/github.actions/actions/version-calculation@develop/122-re-work-actions-structure-for-external-use-and-consistency # Path to your local action

# Optional: You can use the calculated version in subsequent steps
- name: Display calculated version
run: echo "Next version will be ${{ steps.version.outputs.next_version }}"
Loading