Skip to content

for sucessfull actions #2

for sucessfull actions

for sucessfull actions #2

name: Run Shell Commands #name for the github actions file
on: [push] #when do we want to run this workflow filr here we will run when there is a push command to repo

Check failure on line 3 in .github/workflows/first.githubactions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/first.githubactions.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
jobs: #inside jobs keyword we need to efine actions actually command we want to execute
run-shell-command: #action name, this is the command used to run shell commands
runs-on: ubuntu-latest #where we run server runs on commande used to say on which server we run the yaml file unbuntu latest is provided default by git
steps: #if we want to print some text we need to use echo command
- name: Echo a String #name of the command
run: echo "this is first git hub actions file, it's a simple file" #changes just made
run: echo "see if action works correctly"