Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

寫一個 workflow ,在發新版本號時,更新 @v* tag #15

Open
jzovvo opened this issue May 9, 2023 · 1 comment
Open

寫一個 workflow ,在發新版本號時,更新 @v* tag #15

jzovvo opened this issue May 9, 2023 · 1 comment
Assignees
Labels

Comments

@jzovvo
Copy link
Owner

jzovvo commented May 9, 2023

安怎?

因為每次更新版本號時都需要手動去更新通配符版,應該直接獲取版本好的 major,然後把那個 tag 自動拿去指向最新版本的 hash

API 輪廓

on:
  push:
    tags:
      - v*.*.*

jobs:
  build:
    - name: catch major tag
    - name: update major tag
        run: |
          git tag MAJOR_TAG ${{ steps.version.outputs.tag }} -f
          git push origin MAJOR_TAG -f
@jzovvo jzovvo added the feature label May 9, 2023
@jzovvo jzovvo self-assigned this May 9, 2023
@jzovvo
Copy link
Owner Author

jzovvo commented May 10, 2023

minor 版本可能也需要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant