Skip to content

Commit

Permalink
Update github-actions-demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andpab authored Feb 29, 2024
1 parent 46240a7 commit 634b7b8
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,56 @@ on:
schedule:
- cron: '15 6 * * 0'
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
type: environment
required: true

jobs:
job1:
job-Build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Step
run: echo 'Test'
job-Test:
name: Test
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: job-Build
environment: Test
steps:
- run: echo "πŸ§ͺ Testing..."
job-Load-Test:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: job-Build
environment: Load-Test
steps:
- run: |
echo "πŸ§ͺ Testing..."
sleep 15
job-Production:
runs-on: ubuntu-latest
needs: [job-Test, job-Load-Test]
environment:
name: Production
url: https://writeabout.net
if: github.event.inputs.environment == 'Production'
steps:
- run: |
echo "πŸš€ Step 1..."
sleep 10
- run: |
echo "πŸš€ Step 2..."
sleep 10
- run: |
echo "πŸš€ Step 3..."
sleep 10
- run: |
echo "πŸš€ Step 4..."
sleep 10
- run: |
echo "πŸš€ Step 5..."
sleep 10

0 comments on commit 634b7b8

Please sign in to comment.