File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
5
5
jobs :
6
+ os-test :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ os :
12
+ - ubuntu-latest
13
+ - macos-latest
14
+ - windows-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : kamidana
18
+ id : kamidana
19
+ uses : ./
20
+ with :
21
+ template : testdata/default-example.j2
22
+ output_file : test.txt
23
+ tee : true
24
+ - name : Test
25
+ shell : bash
26
+ run : |
27
+ cat << 'EOS' | tee output.txt
28
+ ${{ steps.kamidana.outputs.text }}
29
+ EOS
30
+ diff output.txt test.txt
31
+
6
32
dump-context :
7
33
runs-on : ubuntu-latest
8
34
steps :
Original file line number Diff line number Diff line change 96
96
JOB_CONTEXT : ${{ toJson(job) }}
97
97
RUNNER_CONTEXT : ${{ toJson(runner) }}
98
98
INPUTS_GITHUB_TOKEN : ${{ inputs.github_token }}
99
+ PYTHONUTF8 : 1
99
100
run : " ${GITHUB_ACTION_PATH}/entorypoint.sh"
100
101
working-directory : ${{ inputs.working-directory }}
101
102
Original file line number Diff line number Diff line change 2
2
as_filter ,
3
3
)
4
4
from jinja2 import pass_context
5
+ import io
5
6
import os
7
+ import sys
8
+
9
+
10
+ # no univeral newlines
11
+ sys .stdout = io .TextIOWrapper (sys .stdout .buffer , newline = '' )
6
12
7
13
8
14
@as_filter
You can’t perform that action at this time.
0 commit comments