mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 17:15:41 +00:00
[ci] Fix publish benchmarks job (#3864)
Few fixes in CI to publish benchmarks jobs. cc https://github.com/paritytech/ci_cd/issues/934
This commit is contained in:
committed by
GitHub
parent
8342947b8e
commit
374aefa4f2
@@ -88,7 +88,7 @@ publish-subsystem-benchmarks:
|
|||||||
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
||||||
- git fetch origin gh-pages
|
- git fetch origin gh-pages
|
||||||
# Push result to github
|
# Push result to github
|
||||||
- git checkout gh-pages
|
- git checkout gh-pages --force
|
||||||
- mkdir -p bench/gitlab/ || echo "Directory exists"
|
- mkdir -p bench/gitlab/ || echo "Directory exists"
|
||||||
- rm -rf bench/gitlab/*.json || echo "No json files"
|
- rm -rf bench/gitlab/*.json || echo "No json files"
|
||||||
- cp -r charts/*.json bench/gitlab/
|
- cp -r charts/*.json bench/gitlab/
|
||||||
@@ -121,7 +121,7 @@ trigger_workflow:
|
|||||||
curl -q -X POST \
|
curl -q -X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Authorization: token $GITHUB_TOKEN" \
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
https://api.github.com/repos/paritytech-stg/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
|
https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
|
||||||
-d '{"ref":"refs/heads/master","inputs":{"benchmark-data-dir-path":"'$benchmark_dir'","output-file-path":"'$bencmark_name'"}}'
|
-d '{"ref":"refs/heads/master","inputs":{"benchmark-data-dir-path":"'$benchmark_dir'","output-file-path":"'$bencmark_name'"}}'
|
||||||
sleep 300
|
sleep 300
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ subsystem-regression-tests:
|
|||||||
stage: test
|
stage: test
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
|
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
|
||||||
when: on_success
|
when: always
|
||||||
expire_in: 1 days
|
expire_in: 1 days
|
||||||
paths:
|
paths:
|
||||||
- charts/
|
- charts/
|
||||||
|
|||||||
Reference in New Issue
Block a user