Skip to content

Conversation

@avramenkovladyslav
Copy link

No description provided.

@avramenkovladyslav avramenkovladyslav force-pushed the feature/FTC-1795-extract-semantic-version-action branch from a139bb5 to bb1c6c6 Compare August 1, 2025 12:41
@@ -0,0 +1,27 @@
name: "Semantic version"
description: "Configure semantic versioning based on git tags or branch names"
inputs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use github.* context variables directly from composite actions

@@ -0,0 +1,27 @@
name: "Semantic version"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update build-dotnet-app.yml file within this PR so that we can test this action in practice

- name: Configure version
id: version
run: |
if [[ "${{inputs.github_ref_type}}" == "tag" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow github code style ${{ var }} (add spaces)

with:
fetch-depth: 0
- name: Configure version
id: version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to define action output

outputs:
  name:
    description: Determined semantic version number
    value: ${{ steps.version.outputs.number }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants