-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
I came across the usecase that I need a tag created on the commit as well, does it makes sense to implement this feature as well or is it better to use a different tooling?
I am using an Github App token so I am able to use it in the rule bypass list.
My approach would be this for now:
- name: Create Tag
run: |
curl -X POST \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/git/refs \
-d @- <<EOF
{
"ref": "refs/tags/${{ github.event.inputs.tag_name }}",
"sha": "${{ steps.app-token.outputs.token }}"
}
EOFMain reason for this is no extra dependencies.
PS: I will post my finished workflow later if somebody else needs it.
I realized that the tool i am using (release-it) creates a github release and that only works with a git tag so the tag for me already exists =)
You can close the issue if you like :)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request