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
5 changes: 4 additions & 1 deletion .github/workflows/03-core-features--02-step-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:

say-hello-inline-python:
runs-on: ubuntu-24.04
needs:
- say-hello-action
- say-hello-inline-bash
steps:
- run: print("Hello from an inline python script in a GitHub Action Workflow!")
shell: python
Expand All @@ -21,4 +24,4 @@ jobs:
- uses: actions/hello-world-javascript-action@081a6d193d1dcb38460df1e6927486d748730f9d # v1.1
# - uses: actions/hello-world-javascript-action@v1 # This would work, but it would be less stable and less secure:
with:
who-to-greet: "from an action in the GitHub Action marketplace! 👋"
who-to-greet: "running an action in the GitHub Action marketplace"
25 changes: 25 additions & 0 deletions .github/workflows/ex01.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: first_workflow

on:
workflow_dispatch:

jobs:
first_job:
runs-on: ubuntu-22.04
steps:
- run: print("this is the first job written in python")
shell: python

second_job:
runs-on: ubuntu-latest
steps:
- run: echo "Hey, this is the second job written in shell script"

third_job:
runs-on: ubuntu-24.04
needs:
- first_job
- second_job
steps:
- run: console.log("Hey, this is the third job written in javascript")
shell: node