Git Product home page Git Product logo

git-tag-action's People

Contributors

aanderse avatar azu avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

git-tag-action's Issues

Exit w/o error when tag already exists

Hi. Thank you for creating this action. It is quite handy!

Iโ€™ve found that when a tag already exists (which will often be the case in my project), this action exits with an error:

Error: Reference already exists

In these cases, the job appears as failed:
screenshot of failed job

I would like for the job to exit with a success status even when the tag already exists. Would you be interested in providing an option not to exit with an error in such cases? I would be happy to submit a pull request if so.

Thanks again!

with v2.0.1, the build is failing when the tag already exists

I tried pkgdeps/[email protected] to fix the warning about node 12 in GitHub actions, but this version is failing the build when the tag already exists:

Run pkgdeps/[email protected]
  with:
    github_token: ***
    github_repo: nuclia/frontend
    version: 1.0.18
    git_commit_sha: b5560223b83316a37a56711910b8174a9dac890c
    git_tag_prefix: v
  env:
    APP_IMAGE_NAME: app
    MANAGER_IMAGE_NAME: manager
    CDN_STORAGE: ***
    CONTAINER_REGISTRY: eu.gcr.io/***
    NX_BASE: ***
    NX_HEAD: ***
    PACKAGE_VERSION: 1.0.18
Error: Reference already exists

Error: Input required and not supplied: git_commit_sha

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.