-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Point to correct branch * Update benchmark results --------- Co-authored-by: GitHub Actions <[email protected]>
- Loading branch information
1 parent
e91708b
commit ccc487c
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,15 @@ jobs: | |
# Checkout the repository | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Ensure the full history is fetched for branch operations | ||
|
||
# Checkout the correct branch | ||
- name: Checkout the branch | ||
run: | | ||
BRANCH_NAME="${{ github.head_ref || github.ref_name }}" | ||
echo "Checking out branch: $BRANCH_NAME" | ||
git checkout $BRANCH_NAME | ||
# Build the Docker image | ||
- name: Build Docker image | ||
|
@@ -28,12 +37,13 @@ jobs: | |
-v ${{ github.workspace }}/benchmarks/results:/ucc/benchmarks/results \ | ||
ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh" | ||
# Commit and push benchmark results using a dedicated action | ||
- name: Commit and push results | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: GitHub Actions | ||
author_email: [email protected] | ||
message: "Update benchmark results" | ||
add: "benchmarks/results/*" | ||
add: "." | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters