Install packages on Ubuntu Linux in GitHub Actions



examples/workflows/install-linux-packages.yml
name: Install Linux packages

on:
  push:
    branches: '*'

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Install package
      run: |
        sudo apt-get -y install tree
        which tree