Skip to content

Commit

Permalink
Convert github.ref_name to github.ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jmythms authored Jan 30, 2025
1 parent 8c5ba55 commit 88e5d65
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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")
Expand Down Expand Up @@ -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 }}

0 comments on commit 88e5d65

Please sign in to comment.