Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{action.yml,.github}: add support for windows #160

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mpminardi
Copy link
Member

Add support for running the action on windows-based GitHub runners.

Updates #157

@mpminardi mpminardi self-assigned this Feb 25, 2025
action.yml Outdated
Comment on lines 174 to 178
if [ "{{ runner.os }}" == "Linux" ]; then
HOSTNAME="github-$(cat /etc/hostname)"
elif [ "{{ runner.os }}" == "Windows" ]; then
HOSTNAME="github-$COMPUTERNAME"
fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing $s in front of the braces

Suggested change
if [ "{{ runner.os }}" == "Linux" ]; then
HOSTNAME="github-$(cat /etc/hostname)"
elif [ "{{ runner.os }}" == "Windows" ]; then
HOSTNAME="github-$COMPUTERNAME"
fi
if [ "${{ runner.os }}" == "Linux" ]; then
HOSTNAME="github-$(cat /etc/hostname)"
elif [ "${{ runner.os }}" == "Windows" ]; then
HOSTNAME="github-$COMPUTERNAME"
fi

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks, good catch!

Add support for running the action on windows-based GitHub runners.

Updates #157
@mpminardi mpminardi force-pushed the mpminardi/windows-support branch from 07c60d3 to c29cd81 Compare February 25, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants