Skip to content

Commit

Permalink
Do not open cloud deployments release PR after automation tests for C…
Browse files Browse the repository at this point in the history
…ORE (#5096)
  • Loading branch information
karola312 authored Aug 5, 2024
1 parent dfd63f4 commit 8e91df3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-sheep-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Do not open cloud deployment release PR after automation tests for CORE
33 changes: 1 addition & 32 deletions .github/workflows/automation-tests-on-repository-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,4 @@ jobs:
CUSTOM_VERSION: ${{github.event.client_payload.custom_version }}
ADDITIONAL_TITLE: "Core automation test"
secrets: inherit

add-tests-status-to-release-PR:
needs: run-tests-on-release
if: ${{ always() && github.event.client_payload.project == 'CORE' }}
runs-on: ubuntu-22.04
steps:
- name: Open release PR
env:
VERSION: "${{github.event.client_payload.custom_version }}"
DETAILS_URL_TO_TEST_RUN: "${{needs.run-tests-on-release.outputs.RUN_URL}}"
TEST_STATUS: "${{needs.run-tests-on-release.outputs.TESTS_CONCLUSION}}"
run: |
export GITHUB_TOKEN=$( \
curl --request GET --url ${{ secrets.VAULT_URL}} --header "Authorization: JWT ${{ secrets.VAULT_JWT }}" | jq -r .token \
)
payload=$(jq --null-input \
--arg version "$VERSION" \
--arg details_url_to_test_run "$DETAILS_URL_TO_TEST_RUN" \
--arg test_status "$TEST_STATUS" \
'{
"event_type": "open-release-pull-request",
"client_payload": {
"project": "CORE",
"environment": "SANDBOX",
"version": $version,
"details_url_to_test_run": $details_url_to_test_run,
"test_status": $test_status
}
}')
gh api /repos/saleor/saleor-cloud-deployments/dispatches --input - <<< $payload

0 comments on commit 8e91df3

Please sign in to comment.