Skip to content

Commit

Permalink
Update pull_request.yml #no_ci_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cmengting committed Feb 28, 2024
1 parent cb471fe commit 0b0cf7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on: # yamllint disable-line rule:truthy
jobs:
RunConfig:
runs-on: dimerun-h9-ubuntu2204
environment: ci-test
outputs:
data: ${{ steps.runconfig.outputs.CI_DATA }}
steps:
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
- name: PrepareRunConfig
id: runconfig
run: |
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --configure --outfile ${{ runner.temp }}/ci_run_data.json
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --configure --outfile ${{ runner.temp }}/ci_run_data.json --skip-docker
echo "::group::CI configuration"
python3 -m json.tool ${{ runner.temp }}/ci_run_data.json
Expand Down
2 changes: 2 additions & 0 deletions tests/ci/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,10 +1617,12 @@ def main() -> int:
Labels.NO_MERGE_COMMIT: False,
Labels.NO_CI_CACHE: False,
}
print("args.configure: ", args.configure)
if (pr_info.number != 0 and not args.skip_jobs) or args.commit_message:
message = args.commit_message or git_runner.run(
f"{GIT_PREFIX} log {pr_info.sha} --format=%B -n 1"
)
print("Commit message: ", message)
tokens = _fetch_commit_tokens(message)
print(f"Commit message tokens: [{tokens}]")
if Labels.NO_MERGE_COMMIT in tokens and CI:
Expand Down

0 comments on commit 0b0cf7e

Please sign in to comment.