This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
feat: add new deps polym #63
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: auto tag | |
on: | |
push: | |
branches: main | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create tag | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{ github.token }} | |
script: | | |
if("${{github.event.head_commit.message}}".startsWith("v")){ | |
github.rest.git.createTag({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
tag: "${{github.event.head_commit.message}}", | |
message: "${{github.event.head_commit.message}}", | |
object: "${{ github.sha }}", | |
type: "commit", | |
tagger: { | |
name: "Eritque arcus", | |
email: "[email protected]" | |
} | |
}); | |
github.rest.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: "refs/tags/${{github.event.head_commit.message}}", | |
sha: "${{ github.sha }}" | |
}); | |
} |