.github/workflows/updatedevices.yml #775
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
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update_roms: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: vx.x.x | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- run: ls | |
- name: do things | |
env: | |
SECRET: ${{ secrets.SECRET }} | |
run: | | |
rm -rf devices/ && mkdir devices/ | |
sh ./scripts/setup.sh | |
deno run -A --no-check clone_repos.ts | |
deno run -A --no-check updatelist.ts | |
# deno run -A --no-check processImages.ts | |
timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "feat: update roms ${timestamp}" | |
git push |