Skip to content

Yatharth0045/github-actions-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions Sample Repo

Added quickstart action yamls to start github actions

How to use

  1. Make workflows directory under .github
  2. Move the workflow yml from .github/archives to .github/workflows
  3. Commit and push
  4. Check github actions for pipeline.

Github Workflows

  1. first_workflow: workflow_1.yml

    • workflow
    • jobs
    • steps
  2. second_workflow: workflow_2.yml

    • clone the repo
    • read repo files
    • install and run a program (cowsay)
  3. third_workflow: workflow_3.yml

    • run multiple jobs
    • run jobs in parallel
      jobs parallel and sequential
    • job skip if dependent job fails
      job skip
  4. fourth_workflow: workflow_4.yml

    • sharing artifacts among jobs
      storing artifact
  5. fifth_workflow: workflow_5.yml

    • using variables and secrets
      print envs
  6. sixth_workflow: workflow_6.yml

  7. seventh_workflow: workflow_7.yml

    • job concurrency
    • configure job timeouts
  8. eighth_workflow: workflow_8.yml

    • matrix configuration
      • include
      • exclude
      • fail-fast
      • max-parallel
  9. ninth_workflow: workflow_9.yml

  10. tenth_workflow: workflow_10.yml

    • if expression
  11. eleventh_workflow: workflow_11.yml

    • if expression - status check functions
      • success()
      • failure()
      • always()
      • cancelled()
  12. twelth_workflow: workflow_12.yml

    • replace tokens / placeholders
    • create dynamic environment variables - GITHUB_ENV
    • set output to be used by another job - GITHUB_OUTPUT

Manually skip CICD

To skip ci

## Add any message as commit message
[skip ci]
[ci skip]
[no ci]
[skip actions]
[actions skip]
## Add message as well with skip ci
commit-message


skip-checks:true
## or
skip-checks: true
  • Commit message command to be used
git commit --cleanup=verbatim --message '''
This is my commit message


skip-checks:true
'''

About

Github Action Quickstart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published