diff --git a/.github/workflows/03-core-features--02-step-types.yaml b/.github/workflows/03-core-features--02-step-types.yaml index 8abea6b1..c454ff02 100644 --- a/.github/workflows/03-core-features--02-step-types.yaml +++ b/.github/workflows/03-core-features--02-step-types.yaml @@ -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 @@ -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" diff --git a/.github/workflows/ex01.yaml b/.github/workflows/ex01.yaml new file mode 100644 index 00000000..bc5752ef --- /dev/null +++ b/.github/workflows/ex01.yaml @@ -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 \ No newline at end of file