Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/03-core-features--01-hello-world.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Hello World

on:
name: Hello world
on:
workflow_dispatch:

jobs:
say-hello-inline-bash:
runs-on: ubuntu-24.04
steps:
- run: echo "Hello from an inline bash script in a GitHub Action Workflow!"
say_hello_inline_bash:
runs-on: ubuntu-latest
steps:
- run: echo "Hello world from inline bash"





10 changes: 10 additions & 0 deletions .github/workflows/file5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Trigger_on_branch
on:
push:
branches:
- "feature/*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Branch feature detected"
11 changes: 11 additions & 0 deletions .github/workflows/file6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Trigger_pull_request
on:

pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "A pull request was opened or updated"

8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: CI
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Hello world"
21 changes: 21 additions & 0 deletions .github/workflows/test2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test_workflow
on:
workflow_dispatch:
jobs:
say-hello-inline-bash:
runs-on: ubuntu-latest
steps:
- run: echo "Hello world from inline bash"

say-hello-from-python:
runs-on: ubuntu-latest
steps:
- run: print("Hello from inline bash inside Github Actions")
shell: python
say-hello-action:
runs-on: ubuntu-latest
steps:
- uses: actions/hello-world-javascript-action@v1
# - uses: actions/hello-world-javascript-action@081a6d193d1dcb38460df1e6927486d748730f9d
with:
who-to-greet: "From an action in the Github Marketplace"
32 changes: 32 additions & 0 deletions .github/workflows/test3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Hello_world_using_many_jobs
on:
workflow_dispatch:

jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo "Hello world from inline bash"
- run: echo "A job contain on one or more steps"
- run: echo "Which run sequentially "
- run: echo "within the same compute environment"


job2:
runs-on: ubuntu-latest
steps:
- run: echo "Multiple jobs can run in parallel"
job-3:
runs-on: ubuntu-latest
needs:
- job1
- job2
steps:
- run: echo "They can also depend on one another..."
job-4:
runs-on: ubuntu-latest
needs:
- job2
- job-3
steps:
- run: echo ".. thoses things forms a cyclic graph of jobs"
26 changes: 26 additions & 0 deletions .github/workflows/test4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Push_trigger_lab
on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Someone pushed code"
- run: echo $GITHUB_REF
- run: echo $GITHUB_SHA
- run: echo $GITHUB_REPOSITORY
- run: echo $GITHUB_ACTOR
- run: echo $GITHUB_EVENT_NAME
- run: echo $GITHUB_WORKFLOW
- run: echo $GITHUB_RUN_ID
- run: echo $GITHUB_RUN_NUMBER
- run: echo $GITHUB_JOB
- run: echo $GITHUB_ACTION
- run: echo $GITHUB_ACTION_PATH
- run: echo $GITHUB_ACTION_REF
- run: echo $GITHUB_HEAD_REF
- run: echo $GITHUB_BASE_REF
- run: echo $GITHUB_EVENT_PATH