mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-22 18:31:56 +00:00
Attempt to add automatic release trigger to tag push
This commit is contained in:
13
.github/workflows/tagging.yml
vendored
13
.github/workflows/tagging.yml
vendored
@@ -42,3 +42,16 @@ jobs:
|
|||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git tag "$VERSION"
|
git tag "$VERSION"
|
||||||
git push origin "$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'
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user