forked from nisalgunawardhana/github-actions-learning
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 831 Bytes
/
hello-world.yml
File metadata and controls
35 lines (27 loc) · 831 Bytes
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
name: Hello World Workflow
on:
push:
branches: ["main", develop]
workflow_dispatch:
jobs:
hello:
name: Say Hello
runs-on: ubuntu-latest
steps:
- name: Print hello message
run: echo "🎉 Hello from GitHub Actions!"
- name: Print current time
run: date
- name: Print runner information
run: |
echo "Runner OS: ${{ runner.os }}"
echo "Runner Arch: ${{ runner.arch }}"
echo "GitHub SHA: ${{ github.sha }}"
echo "GitHub Ref: ${{ github.ref }}"
echo "Actor: ${{ github.actor }}"
- name: Check out code
uses: actions/checkout@v3
- name: List files
run: ls -la
- name: Print success message
run: echo "✅ Workflow completed successfully!"