versions #449
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: versions | |
on: | |
repository_dispatch: | |
types: | |
- versions | |
schedule: | |
# Times are in UTC, this job is run daily @ 10HRS = 5AM EST | |
- cron: '50 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 libxml2-utils | |
- name: get versions | |
run: | | |
curl -sLo ~/am-distro-versions "https://github.com/forwardcomputers/bin/raw/main/am-distro-versions" | |
chmod +x ~/am-distro-versions | |
~/am-distro-versions | |
- 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 |