You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/12/01 09:35:18 UTC
(opendal) 01/01: ci: Trigger CI workflow correctly
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch xuanwo/pr-autotest-workflow
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 0b07df05686bad4ccf8a4ad277d6b2f00879c24c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Dec 1 17:34:56 2025 +0800
ci: Trigger CI workflow correctly
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/workflows/full-ci-promote.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/full-ci-promote.yml b/.github/workflows/full-ci-promote.yml
index 7ca1e0234..ab3325768 100644
--- a/.github/workflows/full-ci-promote.yml
+++ b/.github/workflows/full-ci-promote.yml
@@ -30,6 +30,7 @@ permissions:
contents: write
pull-requests: write
issues: write
+ workflows: write
jobs:
promote:
@@ -93,6 +94,30 @@ jobs:
core.setOutput('internal_pr_number', internalPr.number);
core.setOutput('internal_pr_html_url', internalPr.html_url);
+ - name: Trigger CI workflows
+ uses: actions/github-script@v7
+ env:
+ TARGET_BRANCH: ci/pr-${{ github.event.pull_request.number }}
+ with:
+ script: |
+ const workflows = [
+ 'ci_core.yml',
+ 'test_behavior.yml',
+ ];
+ const owner = context.repo.owner;
+ const repo = context.repo.repo;
+ const ref = process.env.TARGET_BRANCH;
+
+ for (const workflow of workflows) {
+ await github.rest.actions.createWorkflowDispatch({
+ owner,
+ repo,
+ workflow_id: workflow,
+ ref,
+ });
+ core.info(`Dispatched ${workflow} on ref ${ref}`);
+ }
+
- name: Comment on PR
uses: actions/github-script@v7
env:
@@ -110,6 +135,7 @@ jobs:
marker,
'Maintainer triggered full CI with repository secrets.',
`Please monitor the mirrored CI PR for results: ${internalUrl}`,
+ 'Workflows dispatched: ci_core.yml, test_behavior.yml.',
'Re-applying the label will refresh this mirror.',
].join('\n');