collate #317
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: collate | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
collate: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- name: Install OpenVPN | |
run: | | |
sudo apt update | |
sudo apt install -y openvpn openvpn-systemd-resolved | |
- name: OpenVPN-Connect | |
uses: kota65535/[email protected] | |
with: | |
config_file: .github/workflows/us_east.ovpn | |
username: ${{ secrets.PIA_USERNAME }} | |
password: ${{ secrets.PIA_PASSWORD }} | |
- run: npm run start | |
- name: Commit cameras | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Daily Camera Update | |
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
file_pattern: 'cameras/*.json' | |