You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- main # or master, depending on your default branch
7
+
workflow_dispatch: # allows manual triggering
8
+
workflow_call:
9
+
secrets:
10
+
token:
11
+
description: 'GitHub Repository Token'
12
+
required: false
13
+
jobs:
14
+
calculate-version:
15
+
runs-on: ubuntu-latest
16
+
17
+
steps:
18
+
- name: Checkout code
19
+
uses: actions/checkout@v4
20
+
with:
21
+
fetch-depth: 0# Important: fetch all history and tags
22
+
23
+
- name: Calculate next version
24
+
id: version
25
+
uses: deepworks-net/github.actions/actions/version-calculation@develop/122-re-work-actions-structure-for-external-use-and-consistency # Path to your local action
26
+
27
+
# Optional: You can use the calculated version in subsequent steps
28
+
- name: Display calculated version
29
+
run: echo "Next version will be ${{ steps.version.outputs.next_version }}"
0 commit comments