mirror of
https://github.com/eza-community/eza.git
synced 2025-12-23 05:36:50 +00:00
- Use the action Swatinem/rust-cache@v2 as it caches previously used dependencies, which helps save a lot of time. - remove secrets.GITHUB_TOKEN as it's available by default. - Use Github Actions concurrency feature, which will cancel previous jobs from a PR if it's been updated.
33 lines
934 B
YAML
33 lines
934 B
YAML
name: Apt Installation
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'deb.asc'
|
|
- '.github/workflows/apt.yml'
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'deb.asc'
|
|
- '.github/workflows/apt.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
apt_installation:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install eza via apt repo
|
|
run: |
|
|
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo tee /etc/apt/trusted.gpg.d/gierens.asc && \
|
|
echo "deb http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list && \
|
|
sudo apt update && \
|
|
sudo apt install -y eza
|
|
- name: Run eza
|
|
run: eza
|
|
- name: Open man page
|
|
run: man eza | cat
|