fix benchmark action
@@ -2,25 +2,27 @@ name: Benchmark
on:
pull_request:
+ if: >-
+ (github.event.action == 'labeled' && github.event.label.name == 'performance') ||
+ (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'performance'))
branches: [master]
types: [labeled, synchronize]
+ workflow_dispatch:
+ branches: [master]
+
jobs:
build:
runs-on: ubuntu-latest
- if: >-
- (github.event.action == 'labeled' && github.event.label.name == 'performance') ||
- (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'performance'))
-
steps:
- uses: actions/checkout@v2
with:
- repository: bakape/js-framework-benchmark
+ repository: yewstack/js-framework-benchmark
- name: Configure benchmark
run: |
- replace="yew = { git = \"${{ github.event.pull_request.head.repo.html_url }}\", branch = \"${{ github.event.pull_request.head.ref }}\" }"
+ replace="yew = { git = \"${REPO_HTML_URL}\", branch = \"${BRANCH}\" }"
input=$(cat frameworks/keyed/yew/Cargo.toml)
output=$(echo "$input" | sed -e "s@yew = .*}@$replace@g")
if [[ "$input" == "$output" ]]; then
@@ -29,6 +31,11 @@ jobs:
fi
echo "$output" > frameworks/keyed/yew/Cargo.toml
echo "$output"
+ env:
+ # REPO_HTML_URL: ${{ github.event.pull_request.head.repo.html_url }}
+ REPO_HTML_URL: https://github.com/voidpumpkin/yew.git
+ # HEAD_REF: ${{ github.event.pull_request.head.ref }}
+ BRANCH: master
- name: Setup ChromeDriver
uses: nanasess/setup-chromedriver@master
