Skip to content
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

[CY-5495] wrong tag on develop branch #54

Open
tamer-abdulghani opened this issue Jan 19, 2022 · 1 comment
Open

[CY-5495] wrong tag on develop branch #54

tamer-abdulghani opened this issue Jan 19, 2022 · 1 comment
Labels
jira-issue Issue tracked on JIRA

Comments

@tamer-abdulghani
Copy link

Problem
version calculation on develop branch is always starting with 1.0.0.SNAPSHOT eventhough the main branch is tagged with 2.0.0
below photo shows how develop branch is tagged after main branch with wrong tag:

1develop

Workflow actions

Here is the actions that I used in my repository workflow:

- name: Git Version
  id: version
  uses: codacy/[email protected]
  with:
     release-branch: main
     dev-branch: develop


- name: Tagging
  uses: actions/github-script@v5
  with:
	github-token: ${{ secrets.GITHUB_TOKEN }}
	script: |
	  github.rest.git.createRef({
		owner: context.repo.owner,
		repo: context.repo.repo,
		ref: 'refs/tags/${{ needs.versioning.outputs.version }}',
		sha: context.sha
	  })
@github-actions github-actions bot changed the title wrong tag on develop branch [CY-5495] wrong tag on develop branch Jan 19, 2022
@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Jan 19, 2022
@github-actions
Copy link

Internal ticket created : CY-5495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

1 participant