Adding a message with deployment location at the end of deployment
authorDavid Négrier <d.negrier@thecodingmachine.com>
Mon, 13 Apr 2020 16:30:22 +0000 (18:30 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Mon, 13 Apr 2020 16:44:12 +0000 (18:44 +0200)
.github/workflows/build-and-deploy.yml

index f2608367450310cfdb5d4ba35dbd4c14a296ceea..ca8e5c02bede301835b42b5a1a2a3e8e188b8af1 100644 (file)
@@ -75,3 +75,11 @@ jobs:
           KUBE_CONFIG_FILE: ${{ secrets.KUBE_CONFIG_FILE }}
         with:
           namespace: workadventure-${{ env.GITHUB_REF_SLUG }}
+
+      - name: Add a comment in PR
+        uses: unsplash/comment-on-pr@1.2.0
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          msg: Environment deployed at http://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
+          check_for_duplicate_msg: true