Skip to content

How to call add Tag? #290

@pilganchuk

Description

@pilganchuk

I'm trying to add a lightweight tag (according this doc) on my commit, but I have an error...
The action:

      - uses: octokit/request-action@v2.x
        id: push_tag
        with:
          route: POST /repos/{owner}/{repo}/git/tags
          owner: novaittestteam
          repo: ntk.mob
          body: ${{ toJSON(env.REQUEST_BODY) }}
          mediaType: |
            format: raw
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          REQUEST_BODY: |
            {"tag":"test","message":"Auto API Call","object":"4c64ded9bed5633f4918ea0284be44c4f85541c4","type":"commit","tagger":{"name":"AutoAPICall","email":"support@test.com"}}
The error:
< 422 322ms
Error: Invalid request.

"message", "object", "tag", "type" weren't supplied.

Where am I wrong? How can I see the whole response body returned from API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsIssues that are ready to be worked on by anyoneType: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions