Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from product-os/ab77/operational
Browse files Browse the repository at this point in the history
correct policy and add test
  • Loading branch information
flowzone-app[bot] authored Dec 19, 2023
2 parents eaba337 + ed867bf commit 2c13d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ runs:
shell: bash
env:
DOMAIN: https://policy-bot.product-os.io
POLICY_PATH: policies/approval.yml
run: |
rcode=$(curl "${DOMAIN}/api/validate" -XPUT -T "${POLICY_PATH}" -s -w "%{http_code}" -o /tmp/response)
if [[ "${rcode}" -gt 299 ]]; then cat /tmp/response && exit 1; fi
set -x -o pipefail
find policies -name '*.y*ml' \
| xargs -I{} curl --fail ${DOMAIN}/api/validate -XPUT -T {}
1 change: 0 additions & 1 deletion policies/no-self-certify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ policy:
- or:
- reviewers have approved internal contributions
- reviewers have approved with invalidate on push
- auto-approved via no-review label
- auto-approved via author is bot
disapproval:
requires:
Expand Down

0 comments on commit 2c13d4b

Please sign in to comment.