infrastructure/.forgejo/workflows/plex_update.yml
Vivian 6719d137d7
All checks were successful
Plex Update / native-test (push) Successful in 8s
fixed error cond 2
2023-05-26 22:29:31 +02:00

27 lines
638 B
YAML

name: Plex Update
on: [push]
jobs:
native-test:
runs-on: native
steps:
- uses: actions/checkout@v3
- env:
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
run: |
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 modified; then
git commit -m "Update Plex"
git push origin main
fi