-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.03 KB
/
github-actions-demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
workflow_dispatch:
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
Depends-on-Job:
needs: Explore-GitHub-Actions
runs-on: ubuntu-latest
steps:
- run: sleep 5
Depends-on-Job-Matrix:
needs: Explore-GitHub-Actions
runs-on: ubuntu-latest
strategy:
matrix:
sleep_time: ["10", "15"]
steps:
- run: sleep ${{ matrix.sleep_time }}
- run: exit 1
After-All:
needs: [ Depends-on-Job-Matrix, Depends-on-Job ]
runs-on: ubuntu-latest
strategy:
matrix:
sleep_time: ["10", "15"]
steps:
- run: sleep ${{ matrix.sleep_time }}