|
| 1 | +# GitHub Actions Quickstart Submission |
| 2 | + |
| 3 | +## Link to Successful Run |
| 4 | + |
| 5 | +- [Example of a successful workflow run](https://github.com/Clothj/F25-DevOps-Intro/actions/runs/17924869008) |
| 6 | +(or insert a screenshot if required) |
| 7 | + |
| 8 | +## Key Concepts |
| 9 | +- **Jobs**: independent tasks executed within a workflow. |
| 10 | +- **Steps**: individual actions within a job, such as checking out the repository or running a script. |
| 11 | +- **Runners**: virtual machines where jobs are executed (e.g., Ubuntu). |
| 12 | +- **Triggers**: events that start a workflow (in this case — any push to any branch). |
| 13 | + |
| 14 | +## What Triggered the Workflow |
| 15 | +The workflow was triggered by a push commit to the repository. In the `.github/workflows/main.yml` file, the following is specified: |
| 16 | +```yaml |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: |
| 20 | + - '**' |
| 21 | +``` |
| 22 | +This means the workflow runs on any push to any branch. |
| 23 | +
|
| 24 | +## Workflow Execution Analysis |
| 25 | +- The runner starts a virtual machine with the Ubuntu image. |
| 26 | +- The repository is checked out using the `actions/checkout@v4` action. |
| 27 | +- The command `echo "Hello!"` is executed, and the result is visible in the logs. |
| 28 | +- After all steps are completed, the runner performs cleanup. |
| 29 | + |
| 30 | +### Successful Run Logs |
| 31 | +``` |
| 32 | +Current runner version: '2.328.0' |
| 33 | +Runner Image Provisioner |
| 34 | +Operating System |
| 35 | +Runner Image |
| 36 | +GITHUB_TOKEN Permissions |
| 37 | +Secret source: Actions |
| 38 | +Prepare workflow directory |
| 39 | +Prepare all required actions |
| 40 | +Getting action download info |
| 41 | +Download action repository 'actions/checkout@v4' (SHA:08eba0b27e820071cde6df949e0beb9ba4906955) |
| 42 | +Complete job name: build |
| 43 | +Run actions/checkout@v4 |
| 44 | +Syncing repository: Clothj/F25-DevOps-Intro |
| 45 | +Getting Git version info |
| 46 | +Temporarily overriding HOME='/home/runner/work/_temp/7a0947db-8c52-4e28-ac14-b400a1680c9a' before making global git config changes |
| 47 | +Adding repository directory to the temporary git global config as a safe directory |
| 48 | +/usr/bin/git config --global --add safe.directory /home/runner/work/F25-DevOps-Intro/F25-DevOps-Intro |
| 49 | +Deleting the contents of '/home/runner/work/F25-DevOps-Intro/F25-DevOps-Intro' |
| 50 | +Initializing the repository |
| 51 | +Disabling automatic garbage collection |
| 52 | +Setting up auth |
| 53 | +Fetching the repository |
| 54 | +Determining the checkout info |
| 55 | +/usr/bin/git sparse-checkout disable |
| 56 | +/usr/bin/git config --local --unset-all extensions.worktreeConfig |
| 57 | +Checking out the ref |
| 58 | +/usr/bin/git log -1 --format=%H |
| 59 | +97b5bf7c9a9aca809be47b9a6c0a1a81008eaf71 |
| 60 | +Run echo "Hello!" |
| 61 | +Hello! |
| 62 | +Post job cleanup. |
| 63 | +/usr/bin/git version |
| 64 | +git version 2.51.0 |
| 65 | +Temporarily overriding HOME='/home/runner/work/_temp/9a11cc62-a616-44b2-8dad-543e99566c8e' before making global git config changes |
| 66 | +Adding repository directory to the temporary git global config as a safe directory |
| 67 | +/usr/bin/git config --global --add safe.directory /home/runner/work/F25-DevOps-Intro/F25-DevOps-Intro |
| 68 | +/usr/bin/git config --local --name-only --get-regexp core\.sshCommand |
| 69 | +/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" |
| 70 | +/usr/bin/git config --local --name-only --get-regexp http\.https\://github\.com/\.extraheader |
| 71 | +http.https://github.com/.extraheader |
| 72 | +/usr/bin/git config --local --unset-all http.https://github.com/.extraheader |
| 73 | +/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\://github\.com/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" |
| 74 | +Cleaning up orphan processes |
| 75 | +``` |
0 commit comments