Skip to content

Commit

Permalink
fix results gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed May 6, 2024
1 parent c60dc73 commit 72f3ba9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
BASE_REPO: https://github.com/project-faster/qpep
ARTIFACT_KEY: results-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
steps:
- name: Install the github cli
Expand All @@ -123,13 +124,13 @@ jobs:

- name: Download results artifacts
run: |
CURRENT_RUN=$(gh run list --json databaseId -w PerformanceTests -L 1 -q .[].databaseId)
CURRENT_RUN=$(gh run list --repo ${{ env.BASE_REPO }} --json databaseId -w PerformanceTests -L 1 -q .[].databaseId)
if [[ "${CURRENT_RUN}" -eq "" ]]; then
exit 1
fi
echo "CURRENT_RUN=${CURRENT_RUN}" >> $GITHUB_ENV
gh run download ${CURRENT_RUN} -p client_*
gh run download ${CURRENT_RUN} -p server_*
gh run download ${CURRENT_RUN} --repo ${{ env.BASE_REPO }} -p client_*
gh run download ${CURRENT_RUN} --repo ${{ env.BASE_REPO }} -p server_*
- name: Generate results artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 72f3ba9

Please sign in to comment.