# Install dependencies sudo apt install -y curl gpg
- name: Trigger upgrade uses: appleboy/ssh-action@v1.0.0 with: host: $ steps.parse.outputs.machine username: ubuntu key: $ secrets.SSH_PRIVATE_KEY script: | sudo apt update && sudo apt upgrade -y sudo apt autoremove -y echo "✅ Updates applied on $(hostname)" github for ubuntu upd
If you are updating an existing project, first clone it to your machine: # Install dependencies sudo apt install -y curl
A common pitfall in CI/CD is assuming the Ubuntu runner's package list is up-to-date. This often results in 404 Not Found errors when attempting to install security patches or new packages. github for ubuntu upd
sudo apt update && sudo apt upgrade