Github Actions Demo #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Actions Demo | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths-ignore: [ .github/** ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '15 6 * * 0' | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: environment | ||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Echo | ||
run: | | ||
echo "Event: ${{ github.event_name }}" | ||
echo "Branch: ${{ github.ref }}" | ||
- uses: actions/[email protected] | ||
- name: List Files | ||
run: | | ||
echo "${{github.repository}} contains:" | ||
tree | ||
Test: | ||
needs: Build | ||
runs-on: ubuntu-latest | ||
if: github.event.name == "workflow_dispatch" | ||
Check failure on line 34 in .github/workflows/github-actions-demo.yml GitHub Actions / Github Actions DemoInvalid workflow file
|
||
environment: Test | ||
steps: | ||
- run: echo "Testing..." | ||
Load-Test: | ||
needs: Build | ||
runs-on: ubuntu-latest | ||
if: github.event.name == "workflow_dispatch" | ||
environment: Load-Test | ||
steps: | ||
- run: | | ||
echo "Testing..." | ||
sleep 15 | ||