- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Feature/ftc 1795 extract semantic version action #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Feature/ftc 1795 extract semantic version action #3
Conversation
a139bb5    to
    bb1c6c6      
    Compare
  
    | @@ -0,0 +1,27 @@ | |||
| name: "Semantic version" | |||
| description: "Configure semantic versioning based on git tags or branch names" | |||
| inputs: | |||
There was a problem hiding this comment.
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" | |||
There was a problem hiding this comment.
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 | 
There was a problem hiding this comment.
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 | 
There was a problem hiding this comment.
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 }}
No description provided.