Skip to content

Tag support? #163

@axi92

Description

@axi92

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 }}"
          }
          EOF

Main reason for this is no extra dependencies.

PS: I will post my finished workflow later if somebody else needs it.

Edit: https://github.com/axi92/steam-workshop-scraper/blob/e47a06f6ab0f7f2d310bb256550bd07033d8a506/.github/workflows/release.yml

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

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions