Skip to content

Commit e0e3e73

Browse files
committed
fix: show github.action_path on Windows
1 parent d1ea82f commit e0e3e73

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/test-action.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ jobs:
1818
matrix:
1919
os:
2020
- ubuntu-latest
21-
- windows-latest
22-
- macos-latest
21+
# - windows-latest
22+
# - macos-latest
2323
jython_version:
2424
- "2.7.3"
25-
- "2.7.2"
26-
- "2.7.1"
27-
- "2.7.0"
28-
- "2.5.3"
29-
- "2.5.2"
30-
- "2.5.1"
31-
- "2.5.0"
32-
- "2.2.1"
33-
- "2.2"
34-
- "2.1"
35-
- "2.0"
25+
# - "2.7.2"
26+
# - "2.7.1"
27+
# - "2.7.0"
28+
# - "2.5.3"
29+
# - "2.5.2"
30+
# - "2.5.1"
31+
# - "2.5.0"
32+
# - "2.2.1"
33+
# - "2.2"
34+
# - "2.1"
35+
# - "2.0"
3636

3737
# [GH-1] Jython 2.0 and 2.1 do not work on macOS and Ubuntu
3838
exclude:

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ runs:
2626
steps:
2727
- run: |
2828
echo "Action running on ${{ runner.os }} ${{ runner.arch }} (name: '${{ runner.name }}')"
29+
ls -l "${{ github.action_path }}"
30+
ls -l "${{ github.action_path }}/bin"
2931
shell: bash
3032
3133
# Sadly, macos-latest images use Python 2.7 (dunno why)
@@ -36,7 +38,7 @@ runs:
3638
import sys, os
3739
import json
3840
39-
with open("${{github.action_path}}/bin/resources.json", "r") as f:
41+
with open("${{ github.action_path }}bin/resources.json", "r") as f:
4042
json_content = json.load(f)
4143
4244
matching_versions = list(filter(lambda el: el["version"] == "${{ inputs.jython-version }}".strip(), json_content))

0 commit comments

Comments
 (0)