Room 7: The Automation Alley
Workshop Resources
Room 7: The Automation Alley
You step into a room buzzing with activity. Gears turn and conveyor belts move, symbolizing automated processes. A holographic display flickers to life: “Automate your way to victory!”
Your Mission
- Create a simple GitHub Action workflow.
- Trigger the workflow by pushing a change to your repository.
- View the results of the automated process.
Instructions
In your local repository, create a new directory called
.github/workflows
.Inside this directory, create a file named
hello-world.yml
.Add the following content to the file:
name: Hello World Workflow on: [push] jobs: say-hello: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Say Hello run: echo "Hello, GitHub Actions!"
Commit this file and push it to your GitHub repository. Go to the “Actions” tab in your GitHub repository to see the workflow run.
Note: GitHub Actions can be powerful tools for automation, but be mindful of usage limits on free accounts.
graph TD
A[Create workflow file] --> B(Commit and push)
B --> C{Workflow triggered?}
C -->|Yes| D[View results]
C -->|No| E[Check workflow file for errors]
E --> B
After your workflow runs successfully, what was the output of the “Say Hello” step? Enter it below:
[Input field for workflow output]Fantastic job! You’ve automated your first process with GitHub Actions. Onward to the next challenge!