This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
Update dependency and submodule #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Detect PKG New Version | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- package.json | |
jobs: | |
tag-create: | |
if: ${{ github.event_name == 'push' && github.actor != 'github-actions[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Detect PKG Version and Create tag | |
shell: bash | |
run: | | |
PKG_VERSION="v$(cat package.json | jq -r '.version')" | |
if ! git tag | grep "${PKG_VERSION}"; then | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git tag -a ${PKG_VERSION} -m ${PKG_VERSION} | |
git push --follow-tags --no-verify --force | |
fi |