Skip to content

Commit a08f2dc

Browse files
committed
Handle path properly
We decide to handle path in each CI/CD integration.
1 parent e43bdf7 commit a08f2dc

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v3
2727
- uses: ./
28-
- run: autify --version
29-
- run: echo token | autify web auth login
28+
- run: |
29+
autify --version
30+
echo token | autify web auth login
31+
shell: bash
32+
- run: |
33+
autify --version
34+
echo token | autify web auth login
35+
shell: pwsh
3036
3137
test-specific:
3238
strategy:
@@ -42,8 +48,14 @@ jobs:
4248
- uses: ./
4349
with:
4450
shell-installer-url: "https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/beta/install-cicd.bash"
45-
- run: autify --version | grep beta
46-
- run: echo token | autify web auth login
51+
- run: |
52+
autify --version
53+
echo token | autify web auth login
54+
shell: bash
55+
- run: |
56+
autify --version
57+
echo token | autify web auth login
58+
shell: pwsh
4759
4860
test-integration-test:
4961
strategy:

script.bash

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ cd "$RUNNER_TEMP"
77
export AUTIFY_CLI_INSTALL_USE_CACHE=1
88
curl -L "$INPUT_SHELL_INSTALLER_URL" | bash -xe
99

10-
cat "$RUNNER_TEMP/autify/path" >> "$GITHUB_PATH"
10+
11+
while IFS= read -r line; do
12+
if [ "$(command -v cygpath)" ]; then
13+
cygpath -w "$line" >> "$GITHUB_PATH"
14+
else
15+
echo "$line" >> "$GITHUB_PATH"
16+
fi
17+
done < "./autify/path"

0 commit comments

Comments
 (0)