-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert github.ref_name to github.ref
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
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 |
---|---|---|
|
@@ -50,9 +50,9 @@ jobs: | |
pip install . psrecord | ||
- name: Run and profile workflow | ||
run: | | ||
branch_name="${{ github.ref_name }}" | ||
echo "Running on branch: $branch_name" | ||
if [[ $branch_name == 'master' ]]; then | ||
branch_ref="${{ github.github.ref }}" | ||
echo "Running on branch: $branch_ref" | ||
if [[ $branch_ref == 'refs/heads/master' ]]; then | ||
steps=("ecm_prep" "run") | ||
for step in "${steps[@]}"; do | ||
psrecord --log memory_log_${step}.txt --include-children --interval 1 "python tests/integration_testing/run_workflow.py --run_step $step --yaml tests/integration_testing/integration_test.yml --with_profiler" | ||
|
@@ -70,15 +70,15 @@ jobs: | |
path: ./tests/integration_testing/results/ | ||
- name: Commit test results | ||
run: | | ||
branch_name="${{ github.ref_name }}" | ||
git pull origin $branch_name | ||
branch_ref="${{ github.github.ref }}" | ||
git pull origin $branch_ref | ||
git add ./tests/integration_testing/results/*.json | ||
if [[ $(git diff --cached --exit-code) ]]; then | ||
git config --system user.email "[email protected]" | ||
git config --system user.name "GitHub Action" | ||
git commit -m "Upload results files from CI build" | ||
echo "Pushing to branch: $branch_name" | ||
git push -u origin $branch_name | ||
echo "Pushing to branch: $branch_ref" | ||
git push -u origin $branch_ref | ||
# Set status checks to success | ||
checks=("code-quality-checks" "python-tests (3.10)" "python-tests (3.11)" "python-tests (3.12)" "integration-tests / Integration Testing") | ||
|
@@ -120,4 +120,4 @@ jobs: | |
mode: stop | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
label: ${{ needs.start-runner.outputs.label }} | ||
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} | ||
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} |