It is a CI/CD
tool which helps us to
.github/workflows
directory and add YAML
file there with any name.
name: Nodejsera first workflow
on:
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Print Something
run: echo Hello from Nodejsera
//This is Event
on:
pull_request:
branches: [ $default-branch ]
steps:
- uses: actions/checkout@v2
- name: Print Something
run: echo Hello from Nodejsera
//Preexisting action which we are using
steps:
- uses: actions/checkout@v2
//We are using the ubuntu runner here
build:
runs-on: ubuntu-latest
In this article we learned about the components of github actions. We also learned the terminology required to understand github actions from a begineers perspective.