-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 1.06 KB
/
Copy path02-workflow-events-v2.yml
File metadata and controls
39 lines (35 loc) · 1.06 KB
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
38
39
name: 02 - Workflow Events v2.2026
# Wersja rozszerzona — push, pull_request, schedule, workflow_dispatch
# dumy zmaina dla CW02_03_2026
#tyeraz bedzie git
on:
#push:
pull_request:
branches:
- CW02_03_2026
schedule:
- cron: "*/2 * * * *" # co 2 minuty # co niedzielę o północy
workflow_dispatch:
jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Show the trigger
run: |
echo "Event name: ${{ github.event_name }}"
echo "pull request"
ls -la
echo "cos tam"
- name: test
run: echo "$test"
# Commit & push:
# ```bash
# git add .github/workflows/02-workflow-events.yaml
# git commit -m "Exercise 02: add PR, schedule and manual triggers"
# git push
# ```
# Jak przetestować:
# - pull_request: utwórz nowy branch, zmień coś, otwórz PR → workflow ruszy na pull_request.
# - schedule: poczekaj na najbliższe okno crona (albo ustaw bliższy czas, np. co godzinę: 0 * * * *).
# - workflow_dispatch (z UI):
# Actions → wybierz 02 - Workflow Events → Run workflow.