Thursday, January 19, 2023

github actions



GitHub Actions is a service provided by GitHub that allows you to automate software development workflows. Here are some basic commands used in GitHub Actions:

    workflow: This command is used to define a workflow in a GitHub Actions configuration file (e.g. .yml file).

    jobs : This command defines a set of steps that are run in parallel or sequentially. A job can be made up of multiple steps.

    steps: This command defines the individual tasks that make up a job. Each step can run a shell command, a script, or use an action from the GitHub Actions Marketplace.

    runs-on: This command specifies the environment in which the job should run.

    name : This command specifies the name of a job or a step.

    if : This command specifies a condition that must be met for a job or step to run.

    env : This command sets an environment variable that can be used by subsequent steps.

    with : This command sets context for an action, such as specifying a specific version of a package.

    needs : This command specifies that a job depends on the completion of another job in the same workflow.

    on: This command triggers a workflow when certain events occur, such as a push to a specific branch or the creation of a pull request.

No comments:

Post a Comment

Argocd with rollouts examples

examples in My github https://github.com/krishnansai/argocd-rollouts.git ArogoCd with ArgoRollouts Rollouts.yml # This example demonst...