Create tag with push to trigger workflow
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user