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
- For pull request (PR) action displays the base and head branches of the PR (e.g. base:
main
, head:task-1
) - For push 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
- Github context - provides information about the GitHub job and event
- ENV variables provided by GitHub
- Use
push
andpull_request
event triggers - other events - Use linux os - operating systems
- Basic GitHub action template in templates folder
- Before listing files, first checkout the code
actions/checkout@v4
- Action workflow syntax
- Quickstart