changed the runs-on ubuntu version #2
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 image version | |
| run: cat /etc/microsoft-prod-release || echo "File not found" | |
| - 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 |