Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2252d7

Browse files
committed
add a FAQ entry about using apt on Linux
1 parent ea1daaa commit e2252d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ environment variable for this to work.
121121
run: git config --global url."https://YOUR_GITHUB_USERNAME:${TOKEN}@github.com".insteadOf "https://github.com"
122122
```
123123
124+
#### How do I install Linux packages?
125+
126+
Use `sudo apt`, making sure to only run the step on Linux:
127+
128+
```yaml
129+
- name: Install Linux packages
130+
if: matrix.platform == 'ubuntu-latest'
131+
run: sudo apt update && sudo apt install -y --no-install-recommends mypackage
132+
```
133+
124134
## Quick links
125135

126136
* Concepts, rate limits, joining the beta, etc: https://help.github.com/en/articles/about-github-actions

0 commit comments

Comments
 (0)