Skip to content

Commit e419522

Browse files
authored
ci: use environment variables instead of set-output commands (#171)
1 parent 6657887 commit e419522

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,15 @@ jobs:
239239
ruby-version: '3.1'
240240
bundler-cache: true
241241
- name: Get IP address of host
242-
id: host_ip_addr
243242
run: |
244243
host_ip_addr=$(ip a | grep eth0 | grep inet | awk '{print $2}' | cut -d'/' -f1)
245-
echo "::set-output name=host_ip_addr::$host_ip_addr"
244+
echo "HOST_IP_ADDR=$host_ip_addr" >> $GITHUB_ENV
246245
- name: Pull Docker images
247246
run: docker pull redis:$REDIS_VERSION
248247
- name: Run containers
249248
run: docker compose -f $DOCKER_COMPOSE_FILE up -d
250249
env:
251-
HOST_ADDR: ${{ steps.host_ip_addr.outputs.host_ip_addr }}
250+
HOST_ADDR: ${{ env.HOST_IP_ADDR }}
252251
- name: Wait for nodes to be ready
253252
run: |
254253
node_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | awk '{print $3}' | tail -n +2 | wc -l)
@@ -276,7 +275,7 @@ jobs:
276275
- name: Build cluster
277276
run: bundle exec rake "build_cluster[$HOST_ADDR]"
278277
env:
279-
HOST_ADDR: ${{ steps.host_ip_addr.outputs.host_ip_addr }}
278+
HOST_ADDR: ${{ env.HOST_IP_ADDR }}
280279
DEBUG: "1"
281280
- name: Run minitest
282281
run: bundle exec rake test

0 commit comments

Comments
 (0)