Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

fix: fix CMakeList

fix: fix CMakeList #65

Workflow file for this run

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 }}"
});
}