Create tag with push to trigger workflow

This commit is contained in:
Nick Bolton
2024-09-04 18:10:26 +01:00
parent c916dcde89
commit 1d6d60d2dd

View File

@ -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