apt.yml 934 B

123456789101112131415161718192021222324252627282930313233
  1. name: Apt Installation
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *'
  5. push:
  6. branches: [ main ]
  7. paths:
  8. - 'deb.asc'
  9. - '.github/workflows/apt.yml'
  10. pull_request:
  11. branches: [ main ]
  12. paths:
  13. - 'deb.asc'
  14. - '.github/workflows/apt.yml'
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  17. cancel-in-progress: true
  18. jobs:
  19. apt_installation:
  20. runs-on: ubuntu-latest
  21. steps:
  22. - name: Install eza via apt repo
  23. run: |
  24. wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo tee /etc/apt/trusted.gpg.d/gierens.asc && \
  25. echo "deb http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list && \
  26. sudo apt update && \
  27. sudo apt install -y eza
  28. - name: Run eza
  29. run: eza
  30. - name: Open man page
  31. run: man eza | cat