Create tag with push to trigger workflow
This commit is contained in:
parent
c916dcde89
commit
1d6d60d2dd
1 changed files with 5 additions and 12 deletions
17
.github/workflows/create-tag.yml
vendored
17
.github/workflows/create-tag.yml
vendored
|
|
@ -35,15 +35,8 @@ jobs:
|
|||
current-version: ${{ env.CURRENT_VERSION }}
|
||||
override-stage: ${{ env.OVERRIDE_STAGE }}
|
||||
|
||||
- name: Create Git tag
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const ref = `refs/tags/${{ steps.next-version.outputs.next-version }}`;
|
||||
const sha = context.sha;
|
||||
await github.rest.git.createRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: ref,
|
||||
sha: sha,
|
||||
});
|
||||
- name: Create and push Git tag
|
||||
run: |
|
||||
git tag ${{ steps.next-version.outputs.next-version }}
|
||||
git push origin ${{ steps.next-version.outputs.next-version }}
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue