Skip to content

Commit 7dd88c0

Browse files
committed
Set NODE_NUMBER before using it.
1 parent 8994650 commit 7dd88c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/pricing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ jobs:
5454
bundler-cache: true
5555
working-directory: ${{ env.WORKING_DIRECTORY }}
5656

57+
- name: Set Node Number Env Var
58+
run: echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
59+
5760
- name: Run mutation tests (Node $((${{ matrix.node_index }} + 1 )) / ${{ matrix.total_nodes }})
5861
run: make mutate
5962
env:
6063
MUTANT_NODE_INDEX: ${{ matrix.node_index }}
6164
MUTANT_TOTAL_NODES: ${{ matrix.total_nodes }}
6265
working-directory: ${{ env.WORKING_DIRECTORY }}
6366

64-
- name: Set Node Number Env Var
65-
run: echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
66-
6767
- name: Send Slack Notification on Mutate Status (Node ${{ env.NODE_NUMBER }})
6868
uses: 8398a7/action-slack@v3
6969
with:

.github/workflows/rails_application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ jobs:
7979
working-directory: ${{ env.WORKING_DIRECTORY }}
8080
run: bundle exec rails tailwindcss:build
8181

82+
- name: Set Node Number Env Var
83+
run: echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
84+
8285
- name: Run mutation tests (Node $((${{ matrix.node_index }} + 1 )) / ${{ matrix.total_nodes }})
8386
run: make mutate
8487
env:
8588
MUTANT_NODE_INDEX: ${{ matrix.node_index }}
8689
MUTANT_TOTAL_NODES: ${{ matrix.total_nodes }}
8790
working-directory: ${{ env.WORKING_DIRECTORY }}
8891

89-
- name: Set Node Number Env Var
90-
run: echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
91-
9292
- name: Send Slack Notification on Mutate Status (Node ${{ env.NODE_NUMBER }})
9393
uses: 8398a7/action-slack@v3
9494
with:

0 commit comments

Comments
 (0)