Reading Text Files
Let’s take a look at pr_check.yml
in our .github/workflows
folder:
## on:
## pull_request:
## branches: main
## paths-ignore:
## - 'README.md'
## workflow_dispatch:
##
## jobs:
## pr_check:
## uses: r4ds/r4dsactions/.github/workflows/render_check.yml@main
The Pipe
- Linux offers a pipe,
|
, similar to that of R and other functional languagestake the output of this | and give it to this as an input
To find the workflow branch:
## branches: main
To show just the first six items in our current folder:
## .
## ..
## .Rbuildignore
## .git
## .github
## .gitignore
Notice that bash
returns the current folder and the parent folder as items.