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

humctl resource-graph #95

Closed
wants to merge 3 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/close-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- closed
env:
ENVIRONMENT_ID: pr-${{ github.event.number }}
HUMCTL_VERSION: '0.13.0'
HUMCTL_VERSION: '0.13.1'
jobs:
ob-pr-closed:
runs-on: ubuntu-latest
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
SCORE_HELM_VERSION: 'latest'
SCORE_HUMANITEC_VERSION: 'latest'
WORKLOAD_NAME: my-sample-app
HUMCTL_VERSION: '0.13.0'
HUMCTL_VERSION: '0.13.1'
jobs:
build-run-test-push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -279,9 +279,9 @@ jobs:
echo "" >> pr_message.txt
echo "</details>" >> pr_message.txt

echo "<details><summary>Score Output</summary>" >> pr_message.txt
echo "<details><summary>Score output</summary>" >> pr_message.txt
echo "" >> pr_message.txt
echo "### Score Output:" >> pr_message.txt
echo "### Score output:" >> pr_message.txt
echo '```json' >> pr_message.txt
echo "" >> pr_message.txt
cat score_output.json >> pr_message.txt
Expand All @@ -290,6 +290,23 @@ jobs:
echo "" >> pr_message.txt
echo "</details>" >> pr_message.txt

if [ "$DEPLOYMENT_ERRORS" == "[]" ]; then
echo "<details><summary>Resources graph</summary>" >> pr_message.txt
echo "" >> pr_message.txt
echo "### New resources graph:" >> pr_message.txt
echo "![Alt text](https://g.gravizo.com/svg?" >> pr_message.txt
echo "" >> pr_message.txt
HUMANITEC_CLI_ALPHA_FEATURES=resource-graph humctl resource-graph \
--env ${{ env.ENVIRONMENT_ID }} \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ secrets.HUMANITEC_ORG }} \
--app ${{ vars.APP_NAME }} >> pr_message.txt
echo "" >> pr_message.txt
echo ")" >> pr_message.txt
echo "" >> pr_message.txt
echo "</details>" >> pr_message.txt
fi

cat pr_message.txt
- name: comment pr
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
ENVIRONMENT_ID: development
SCORE_HUMANITEC_VERSION: 'latest'
WORKLOAD_NAME: my-sample-app
HUMCTL_VERSION: '0.13.0'
HUMCTL_VERSION: '0.13.1'
jobs:
build-push:
runs-on: ubuntu-22.04
Expand Down
Loading