Skip to content

Commit ea6a98b

Browse files
authored
Merge pull request #84 from JohanDevl/develop
fix: resolve export mode inversion and optimize performance
2 parents aef06ed + b94894d commit ea6a98b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+12238
-901
lines changed

.github/workflows/auto-tag.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
25+
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
2526

2627
- name: Set up Git
2728
run: |
@@ -67,9 +68,9 @@ jobs:
6768
# Add PR info to tag message
6869
TAG_MESSAGE="Release $NEW_TAG from PR #${{ steps.pr_info.outputs.pr_number }}: ${{ github.event.pull_request.title }}"
6970
70-
# Create and push tag
71+
# Create and push tag using PAT for workflow triggering
7172
git tag -a "$NEW_TAG" -m "$TAG_MESSAGE"
72-
git push origin "$NEW_TAG"
73+
git push https://x-access-token:${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git "$NEW_TAG"
7374
7475
echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT
7576
@@ -91,5 +92,22 @@ jobs:
9192
draft: false
9293
prerelease: false
9394
env:
94-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
96+
97+
- name: Trigger CI/CD for Docker Build
98+
uses: actions/github-script@v7
99+
with:
100+
github-token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
101+
script: |
102+
const response = await github.rest.actions.createWorkflowDispatch({
103+
owner: context.repo.owner,
104+
repo: context.repo.repo,
105+
workflow_id: 'ci-cd.yml',
106+
ref: '${{ steps.tag.outputs.new_tag }}',
107+
inputs: {
108+
reason: 'Auto-triggered from release ${{ steps.tag.outputs.new_tag }}'
109+
}
110+
});
111+
console.log('Triggered CI/CD workflow for tag ${{ steps.tag.outputs.new_tag }}');
112+
console.log('Response:', response.status);
95113

0 commit comments

Comments
 (0)