Skip to content

Commit 167908f

Browse files
authored
Merge pull request #15 from OP3ratordec/o-branch-1
update
2 parents 20ecf0d + b921885 commit 167908f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/bb-masking-3.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
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

0 commit comments

Comments
 (0)