Skip to content

Commit 88e5d65

Browse files
authored
Convert github.ref_name to github.ref
1 parent 8c5ba55 commit 88e5d65

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/integration_tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
pip install . psrecord
5151
- name: Run and profile workflow
5252
run: |
53-
branch_name="${{ github.ref_name }}"
54-
echo "Running on branch: $branch_name"
55-
if [[ $branch_name == 'master' ]]; then
53+
branch_ref="${{ github.github.ref }}"
54+
echo "Running on branch: $branch_ref"
55+
if [[ $branch_ref == 'refs/heads/master' ]]; then
5656
steps=("ecm_prep" "run")
5757
for step in "${steps[@]}"; do
5858
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:
7070
path: ./tests/integration_testing/results/
7171
- name: Commit test results
7272
run: |
73-
branch_name="${{ github.ref_name }}"
74-
git pull origin $branch_name
73+
branch_ref="${{ github.github.ref }}"
74+
git pull origin $branch_ref
7575
git add ./tests/integration_testing/results/*.json
7676
if [[ $(git diff --cached --exit-code) ]]; then
7777
git config --system user.email "github-action@users.noreply.github.com"
7878
git config --system user.name "GitHub Action"
7979
git commit -m "Upload results files from CI build"
80-
echo "Pushing to branch: $branch_name"
81-
git push -u origin $branch_name
80+
echo "Pushing to branch: $branch_ref"
81+
git push -u origin $branch_ref
8282
8383
# Set status checks to success
8484
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:
120120
mode: stop
121121
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
122122
label: ${{ needs.start-runner.outputs.label }}
123-
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
123+
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}

0 commit comments

Comments
 (0)