Skip to content

Commit a23330f

Browse files
Update environments-approvals.yml
1 parent 6012214 commit a23330f

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/environments-approvals.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,36 @@ on:
44
workflow_dispatch:
55
inputs:
66
environment:
7-
description: "Choose environment"
7+
description: "Choose environment to deploy"
88
required: true
99
default: "dev"
1010

1111
jobs:
1212
deploy:
1313
name: 🚀 Deploy Application
1414
runs-on: ubuntu-latest
15-
1615
environment:
1716
name: ${{ github.event.inputs.environment }}
1817
url: https://myapp-${{ github.event.inputs.environment }}.example.com
1918

2019
steps:
21-
- uses: actions/checkout@v4
20+
- name: Checkout code
21+
uses: actions/checkout@v4
2222

2323
- name: Print environment info
2424
run: |
25-
echo "Deploying to: ${{ github.event.inputs.environment }}"
25+
echo "Deploying to environment: ${{ github.event.inputs.environment }}"
2626
echo "Triggered by: ${{ github.actor }}"
2727
2828
- name: Use environment secret
2929
env:
3030
API_KEY: ${{ secrets.API_KEY }}
31-
run: echo "Using secret API key: ${API_KEY:0:4}****"
31+
run: |
32+
echo "Using secret (masked): ${API_KEY:0:4}****"
33+
echo "Environment URL: https://myapp-${{ github.event.inputs.environment }}.example.com"
3234
3335
- name: Simulate deployment
34-
run: echo "Deploying app to ${{ github.event.inputs.environment }}..."
36+
run: |
37+
echo "🚀 Deploying app to ${{ github.event.inputs.environment }}..."
38+
sleep 3
39+
echo "✅ Deployment successful!"

0 commit comments

Comments
 (0)