Some Advanced Features

2.4.6. Some Advanced Features#

  • ${{...}} Context Variables like ${{ github.event_name }}.

  • On-the-Fly Variables defined within a Workflow and referenced by other steps.

  • Expression Evaluation in the ${{...}} syntax.

  • Using Workflow Templates

  • Storing Secrets like ssh -i ${{ secrets.SSH_PRIVATE_KEY }} user@server.com.

  • Creating Dependent Jobs to ensure that jobs run in sequence.

  • Using a Matrix to run a job multiple times with different configurations.

  • Caching Dependencies to speed up workflows.

  • Using Databases and Service Containers that will run alongside the job.

  • Using Labels (Targeting Runners) to use specific runners for a job (e.g., self-hosted, ubuntu-latest).

  • Reusing Workflows by calling another workflow from within a workflow.

  • Using Environments with specific secrets and protection rules for different job stages.