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 8484
8585 - name : Apply global masking rule
8686 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') }}
8888 run : |
8989 # Process all global-masking-rule.json files
9090 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:
103103 echo "Response body: $body"
104104
105105 # 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
110109 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
111114 exit 1
112115 fi
113116 done
You can’t perform that action at this time.
0 commit comments