@@ -56,17 +56,20 @@ runs:
56
56
steps :
57
57
# step is required to workaround variable expansion in variables
58
58
- name : declare dependent variables
59
+ shell : bash
59
60
run : |
60
61
echo "stats_dir=${{ inputs.output_repo_dir }}" >> $GITHUB_ENV
61
62
echo "stats_json=${{ inputs.output_repo_dir }}/latest.json" >> $GITHUB_ENV
62
63
echo "stats_list_key=${{ inputs.stats_list_key }}" >> $GITHUB_ENV
63
64
64
65
- name : allocate directories
66
+ shell : bash
65
67
run : |
66
68
mkdir $GITHUB_WORKSPACE/gh-workflow $GITHUB_WORKSPACE/gh-stats
67
69
echo "WORKFLOW_TEMPDIR=$(mktemp -d)" >> $GITHUB_ENV
68
70
69
71
- name : allocate variables
72
+ shell : bash
70
73
run : |
71
74
echo "write_error_to_file=$WORKFLOW_TEMPDIR/err.log" >> $GITHUB_ENV
72
75
echo "write_warning_to_file=$WORKFLOW_TEMPDIR/warn.log" >> $GITHUB_ENV
86
89
token : ${{ inputs.output_repo_write_token }}
87
90
88
91
- name : request ${{ inputs.stat_entity_path }} json
92
+ shell : bash
89
93
run : |
90
94
curl --user "${{ inputs.stat_repo_owner }}:${{ inputs.stat_repo_read_token }}" \
91
95
-H "Accept: application/vnd.github.v3+json" \
@@ -105,6 +109,7 @@ runs:
105
109
106
110
- name : allocate error and warning variables
107
111
if : steps.accum-stats.outcome != 'success'
112
+ shell : bash
108
113
run : |
109
114
# allocate variables here to make it visible in the next step
110
115
[[ -f "$write_error_to_file" ]] && echo "error_string<<EOF" >> $GITHUB_ENV
@@ -117,12 +122,14 @@ runs:
117
122
118
123
- name : print errors and warnings
119
124
if : steps.accum-stats.outcome != 'success'
125
+ shell : bash
120
126
run : |
121
127
[[ -n "$error_string" ]] && echo "::error ::$error_string"
122
128
[[ -n "$warning_string" ]] && echo "::warning ::$warning_string"
123
129
exit 255
124
130
125
131
- name : commit gh-stats
132
+ shell : bash
126
133
run : |
127
134
cd $GITHUB_WORKSPACE/gh-stats
128
135
git add .
0 commit comments