apt #300
This file contains 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 | |
on: | |
repository_dispatch: | |
types: | |
- apt | |
schedule: | |
# Times are in UTC, this job is run daily @ 10HRS = 5AM EST | |
- cron: '55 9 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install apps | |
run: | | |
sudo apt-get update | |
sudo apt-get install dpkg-dev | |
- name: update apt | |
run: | | |
curl -sLo ~/am-apt-update "https://github.com/forwardcomputers/bin/raw/main/am-apt-update" | |
chmod +x ~/am-apt-update | |
~/am-apt-update | |
- name: commit and push | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Ali Mustakim" | |
git add . | |
git diff-index --quiet HEAD || git commit -a -m "github actions update" | |
git push origin |