Skip to content

Commit 989d09a

Browse files
authored
fix: push release tag to remote before gh release create (#209)
`gh release create` requires the tag to exist on the remote — creating it locally with `git tag` is not sufficient. The job was failing every time with: ``` tag 1.0.69.11 exists locally but has not been pushed to petesramek/polyline-algorithm-csharp, please push it before continuing or specify the `--target` flag to create a new tag ``` ## Change - **`.github/actions/github/create-release/action.yml`** — push the annotated tag to `origin` immediately after creating it, before invoking `gh release create` ```diff run: | git tag -a ${{ inputs.release-version }} -m "${{ inputs.release-version }}" + git push origin ${{ inputs.release-version }} ```
1 parent 7ae8aba commit 989d09a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/actions/github/create-release/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ runs:
3131
shell: bash
3232
run: |
3333
git tag -a ${{ inputs.release-version }} -m "${{ inputs.release-version }}"
34+
git push origin ${{ inputs.release-version }}
3435
- name: 'Create GitHub release PolylineAlgorithm ${{ inputs.release-version }}'
3536
shell: bash
3637
env:

0 commit comments

Comments
 (0)