Skip to content

Commit 22461c4

Browse files
committed
Update workflow from canonical template
1 parent 6182333 commit 22461c4

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎.github/workflows/defang.yaml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
defang:
2323
name: Defang ${{ github.event.inputs.action || 'up' }} ${{
2424
github.event.inputs.stack || 'default stack' }}
25-
environment: defang-${{ github.event.inputs.stack || 'production' }}
25+
environment:
26+
name: defang-${{ github.event.inputs.stack || 'production' }}
27+
url: ${{ steps.deploy.outputs.endpoint }}
2628
runs-on: ubuntu-latest
2729
timeout-minutes: 70
2830
permissions:
@@ -39,13 +41,9 @@ jobs:
3941

4042
- name: Defang ${{ github.event.inputs.action || 'up' }} ${{
4143
github.event.inputs.stack || 'default stack' }}
44+
id: deploy
4245
uses: DefangLabs/defang-github-action@v2
4346
with:
4447
command: ${{ github.event.inputs.action || 'up' }}
4548
stack: ${{ github.event.inputs.stack || '' }}
46-
47-
- name: Deployment Summary
48-
uses: DefangLabs/defang-github-action@v2
49-
with:
50-
command: services
51-
stack: ${{ github.event.inputs.stack || '' }}
49+
summary: ${{ (github.event.inputs.action || 'up') != 'down' }}

0 commit comments

Comments
 (0)