File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 84
84
85
85
- name : Apply global masking rule
86
86
id : apply-global-masking-rule
87
- if : ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, '/ global-masking-rule.json') }}
87
+ if : ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, 'global-masking-rule.json') }}
88
88
run : |
89
89
# Process all global-masking-rule.json files
90
90
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep "global-masking-rule.json" | while read -r CHANGED_FILE; do
@@ -103,11 +103,14 @@ jobs:
103
103
echo "Response body: $body"
104
104
105
105
# Append to outputs (with unique identifiers)
106
- echo "${body}" >> $GITHUB_OUTPUT
107
- echo "EOF" >> $GITHUB_OUTPUT
108
-
109
- if [[ $status_code -lt 200 || $status_code -ge 300 ]]; then
106
+ if [[ $status_code -ge 200 && $status_code -lt 300 ]]; then
107
+ echo "${body}" >> $GITHUB_OUTPUT
108
+ else
110
109
echo "Failed with status code: $status_code"
110
+ echo "Response body: ${body}"
111
+ if [[ $status_code -eq 403 ]]; then
112
+ echo "Access denied. Please check your permissions and API token."
113
+ fi
111
114
exit 1
112
115
fi
113
116
done
You can’t perform that action at this time.
0 commit comments