Skip to content

Commit 87b21b0

Browse files
authored
changing ci workflow tweak (#42)
Signed-off-by: Daniel Guns <danbguns@gmail.com>
1 parent 8dd6450 commit 87b21b0

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/auto-tag-release.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,9 @@ jobs:
5151
run: |
5252
echo "⚠️ Tag v${{ steps.version.outputs.version }} already exists, skipping tag creation"
5353
54-
- name: Trigger release workflow
54+
- name: Wait for release workflow to trigger
5555
if: steps.check_tag.outputs.exists == 'false'
56-
uses: actions/github-script@v7
57-
with:
58-
github-token: ${{ secrets.PAT_TOKEN }}
59-
script: |
60-
await github.rest.actions.createWorkflowDispatch({
61-
owner: context.repo.owner,
62-
repo: context.repo.repo,
63-
workflow_id: 'release.yml',
64-
ref: `v${{ steps.version.outputs.version }}`,
65-
inputs: {
66-
tag: `v${{ steps.version.outputs.version }}`
67-
}
68-
});
69-
console.log('✅ Triggered release workflow for v${{ steps.version.outputs.version }}');
56+
run: |
57+
echo "✅ Tag v${{ steps.version.outputs.version }} created"
58+
echo "The Release workflow will be automatically triggered by the tag push"
59+
echo "Using PAT_TOKEN ensures the push event triggers workflows"

0 commit comments

Comments
 (0)