infrastructure/.forgejo/workflows/plex_update.yml
Vivian 79c9447175
Some checks failed
Nix / lint (push) Successful in 3m29s
Plex Update / update (push) Failing after 36s
test nix in ci
2023-09-09 10:44:37 +02:00

36 lines
847 B
YAML

name: Plex Update
on:
push:
branches:
- main
- ci
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: docker
steps:
- uses: actions/checkout@v3
- uses: https://github.com/innovationnorway/setup-vault@v1
- env:
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
run: |
sudo apt-get update
sudo apt-get install jq
git config user.name "Forgejo Actions Bot"
git config user.email "<>"
# Run Update script
./nixos/pkgs/plex-pass/update.sh
git add ./nixos/pkgs/plex-pass/
# Push if changed
if git status ./nixos/pkgs/plex-pass/ | grep -q "to be committed"; then
git commit -m "Update Plex"
git push origin main
fi