Skip to content

Commit 58f08d9

Browse files
committed
fix Required property is missing: shell pipeline error
1 parent 4890ea1 commit 58f08d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

action.yml

+7
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,20 @@ runs:
5656
steps:
5757
# step is required to workaround variable expansion in variables
5858
- name: declare dependent variables
59+
shell: bash
5960
run: |
6061
echo "stats_dir=${{ inputs.output_repo_dir }}" >> $GITHUB_ENV
6162
echo "stats_json=${{ inputs.output_repo_dir }}/latest.json" >> $GITHUB_ENV
6263
echo "stats_list_key=${{ inputs.stats_list_key }}" >> $GITHUB_ENV
6364
6465
- name: allocate directories
66+
shell: bash
6567
run: |
6668
mkdir $GITHUB_WORKSPACE/gh-workflow $GITHUB_WORKSPACE/gh-stats
6769
echo "WORKFLOW_TEMPDIR=$(mktemp -d)" >> $GITHUB_ENV
6870
6971
- name: allocate variables
72+
shell: bash
7073
run: |
7174
echo "write_error_to_file=$WORKFLOW_TEMPDIR/err.log" >> $GITHUB_ENV
7275
echo "write_warning_to_file=$WORKFLOW_TEMPDIR/warn.log" >> $GITHUB_ENV
@@ -86,6 +89,7 @@ runs:
8689
token: ${{ inputs.output_repo_write_token }}
8790

8891
- name: request ${{ inputs.stat_entity_path }} json
92+
shell: bash
8993
run: |
9094
curl --user "${{ inputs.stat_repo_owner }}:${{ inputs.stat_repo_read_token }}" \
9195
-H "Accept: application/vnd.github.v3+json" \
@@ -105,6 +109,7 @@ runs:
105109
106110
- name: allocate error and warning variables
107111
if: steps.accum-stats.outcome != 'success'
112+
shell: bash
108113
run: |
109114
# allocate variables here to make it visible in the next step
110115
[[ -f "$write_error_to_file" ]] && echo "error_string<<EOF" >> $GITHUB_ENV
@@ -117,12 +122,14 @@ runs:
117122
118123
- name: print errors and warnings
119124
if: steps.accum-stats.outcome != 'success'
125+
shell: bash
120126
run: |
121127
[[ -n "$error_string" ]] && echo "::error ::$error_string"
122128
[[ -n "$warning_string" ]] && echo "::warning ::$warning_string"
123129
exit 255
124130
125131
- name: commit gh-stats
132+
shell: bash
126133
run: |
127134
cd $GITHUB_WORKSPACE/gh-stats
128135
git add .

0 commit comments

Comments
 (0)