Skip to content

Commit 5448a34

Browse files
committed
Check hostname file directly instead of running command
1 parent dd7f90c commit 5448a34

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/container-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
set -x
3737
echo ${MY_VAR}
38-
hostname
38+
cat /etc/hostname
3939
uname -a
4040
cat /etc/os-release
4141
- run: echo "🍏 This job's status is ${{ job.status }}."

.github/workflows/simple-long-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Get hostname and runner details
2929
run: |
3030
set -x
31-
hostname
31+
cat /etc/hostname
3232
uname -a
3333
cat /etc/os-release
3434
- name: Wait for 600 seconds

.github/workflows/simple-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Get hostname and runner details
2929
run: |
3030
set -x
31-
hostname
31+
cat /etc/hostname
3232
uname -a
3333
cat /etc/os-release
3434
- run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)