Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not open cloud deployments release PR after automation tests for CORE #5096

Merged
merged 3 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading