infrastructure/.forgejo/workflows/plex_update.yml

30 lines
679 B
YAML
Raw Normal View History

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 "<>"
2023-05-26 22:26:33 +02:00
# Run Update script
./nixos/pkgs/plex-pass/update.sh
2023-05-26 22:26:33 +02:00
git add ./nixos/pkgs/plex-pass/
2023-05-26 22:30:44 +02:00
git status
git diff
2023-05-26 22:29:31 +02:00
2023-05-26 22:30:44 +02:00
# Push if changed
2023-05-26 22:29:31 +02:00
if git status ./nixos/pkgs/plex-pass/ | grep -q modified; then
2023-05-26 22:26:33 +02:00
git commit -m "Update Plex"
git push origin main
fi
2023-05-26 22:27:10 +02:00