Time to warm up. In your first task you will create a GitHub action that prints basic information about itself and then lists all the files that are currently in the repository
- Action displays the branch and commit ref
- Action lists the files that are in the repository
_ Remember to create a new branch for this task _
Those hints will help you start
- Quickstart
- GitHub action template in templates folder
- Use
push
event trigger - other events - Use linux os - operating systems
- Before listing files, first checkout the code
actions/checkout@v4
If you want to learn and experiment more, you can use the following resources:
- Action workflow syntax - detail explanation of each of the fields in the workflow file
- Github context - provides information about the GitHub job and event as variables
- ENV variables provided by GitHub
- Understanding GitHub Actions
Here is an example solution for this task: