From ac52d5bfb20bb1463c80eb69ec18ac51b4fd43d1 Mon Sep 17 00:00:00 2001 From: KAMI Date: Mon, 19 Sep 2022 19:07:13 +0200 Subject: [PATCH] Add update playlist for unattended playlist update --- .github/workflows/update_playlis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/update_playlis.yml diff --git a/.github/workflows/update_playlis.yml b/.github/workflows/update_playlis.yml new file mode 100644 index 0000000..10c2355 --- /dev/null +++ b/.github/workflows/update_playlis.yml @@ -0,0 +1,20 @@ +name: Update playlist + +on: + push: + branches: [ automate-1 ] + workflow_dispatch: + +jobs: + update-plalist: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + - name: Update playlist + run: | + git config user.name "PlaylistBot" + git config user.email "playlistbot@users.noreply.github.com" + git add . + git commit --quiet -m "Update Playlist (GitHub Actions)" + git push -f origin automate-1