Skip to content

Commit

Permalink
Update environments-secrets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioelumir authored Sep 25, 2024
1 parent ba195fd commit 9439f95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/environments-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@ jobs:
echo Org secret is ${{ secrets.MY_ORG_SECRET }}
echo Env secret is not accessible ${{ secrets.MY_ENV_SECRET }}
use-environment-uat:
name: Use UAT environment
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: use-environment-test

environment:
name: UAT
url: 'https://uat.github.com'

steps:
- name: Step that uses the UAT environment
run: echo "Deployment to UAT..."
env:
env_secret: ${{ secrets.MY_ENV_SECRET }}

use-environment-prod:
name: Use PROD environment
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9439f95

Please sign in to comment.