Attempt to add automatic release trigger to tag push

This commit is contained in:
2025-05-28 17:50:45 +01:00
parent 2643b075a6
commit e691332ba0

View File

@@ -42,3 +42,16 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag "$VERSION"
git push origin "$VERSION"
- name: Trigger Release Workflow
if: env.TAG_EXISTS == 'false'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'CI.yml',
ref: 'main'
})