Skip to content

Error: Input required and not supplied: git_commit_sha  #8

@mzaatar

Description

@mzaatar

The documentation said that git_commit_sha is optional but I got an error when not supplying it.

My GitHub workflow is as follows:

name: Create git tag

on:
  workflow_call:
    inputs:
      tag:
        description: "Git tag"
        required: true
        type: string

jobs:
  push-git-tag:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      # Push tag to GitHub if the version's tag is not tagged
      - name: push-version-to-git-tag
        uses: pkgdeps/git-tag-action@v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          github_repo: ${{ github.repository }}
          version: ${{ inputs.tag }}

Results:

Run pkgdeps/git-tag-action@v2
  with:
    github_token: ***
    github_repo: abc/xyz
    version: v.10-beta
Error: Input required and not supplied: git_commit_sha

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions