pkgdeps / git-tag-action Goto Github PK
View Code? Open in Web Editor NEW[GitHub Action] Get ${version} from package.json and git tag ${version} for the repository.
License: MIT License
[GitHub Action] Get ${version} from package.json and git tag ${version} for the repository.
License: MIT License
The request is to update the Node version used to 16.
More information here: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
Current using node 16, but node 16 will be EOL 2023-09-11
So, We need to update node18
Line 22 in c5da9e9
๐ I can not found a document about this image name
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
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:
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!
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
https://developer.github.com/v3/git/tags/
Current way create light-weight(non-annotated) tag.
It cause some problem like lerna/lerna#2572
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.