FEAT: Deploy summary

This commit is contained in:
Gabriel Rosa
2022-11-03 10:53:37 -03:00
parent f77476b9ae
commit af12a39959
2 changed files with 15 additions and 9 deletions
+14 -8
View File
@@ -56,6 +56,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
summary:
if: ${{ github.event_name == 'workflow_dispatch'}}
needs: [extract_environment, semantic_release]
runs-on: ubuntu-latest
steps:
- name: Create summary
env:
EVENT: ${{ github.event_name }}
IMAGE_TAG: ${{ needs.semantic_release.outputs.new_release_version }}
ENV: ${{ needs.extract_environment.outputs.environment }}
BRANCH: ${GITHUB_REF#refs/heads/}
run: echo "### Deploy da branch \`$BRANCH\` no ambiente **$ENV** :rocket:" >> $GITHUB_STEP_SUMMARY
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || needs.semantic_release.outputs.new_release_published == 'true' }}
needs: [extract_environment, semantic_release]
@@ -63,14 +77,6 @@ jobs:
[self-hosted, '${{ needs.extract_environment.outputs.environment }}']
steps:
- name: Printing stats
env:
EVENT: ${{ github.event_name }}
IMAGE_TAG: ${{ needs.semantic_release.outputs.new_release_version }}
ENV: ${{ needs.extract_environment.outputs.environment }}
BRANCH: ${{ needs.extract_environment.outputs.environment }}
run: echo '### Deploy da branch `${GITHUB_REF#refs/heads/}` no ambiente $ENV :rocket:' >> $GITHUB_STEP_SUMMARY
- name: Checkout
uses: actions/checkout@v2