more testing #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "APT Reset" | |
| on: [push] | |
| jobs: | |
| show-apt-sources: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Show apt sources | |
| run: | | |
| echo "=== /etc/apt/sources.list ===" | |
| cat /etc/apt/sources.list | |
| echo "=== /etc/apt/sources.list.d/ ===" | |
| ls -l /etc/apt/sources.list.d/ | |
| for f in /etc/apt/sources.list.d/*.list; do | |
| echo "=== $f ===" | |
| cat "$f" | |
| done | |
| reset-apt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Reset apt sources | |
| run: | | |
| # your cleanup commands here | |
| sudo rm -f /etc/apt/sources.list.d/* | |
| sudo apt-get clean | |
| sudo apt-get update |