Skip to content

Commit

Permalink
github: autotag
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Mar 21, 2022
1 parent e20e492 commit a992749
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/AutoTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,16 @@ jobs:
version: 22.2.alpha
# 步骤
steps:

- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set outputs
id: githash
id: git
run: |
echo "::set-output name=sha_short::$(git rev-parse --short=8 HEAD)"
- uses: Klemensas/action-autotag@stable
id: autotag
echo "::set-output name=sha_short::$(git rev-parse --short=8 HEAD)"
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefix: "v"
tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: v${{env.version}}-${{ steps.git.outputs.sha_short }}



0 comments on commit a992749

Please sign in to comment.