From 402da8935d648cd2974dc8cf8c6503cbcdfdd853 Mon Sep 17 00:00:00 2001 From: Anas Date: Mon, 14 Aug 2023 00:41:41 +0300 Subject: [PATCH] fix(anime.yml): copy the script to /tmp --- .github/workflows/anime.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/anime.yml b/.github/workflows/anime.yml index 450f964..aeeaaca 100644 --- a/.github/workflows/anime.yml +++ b/.github/workflows/anime.yml @@ -32,14 +32,12 @@ jobs: - name: Change the branch run: | + cp photo/anime.py /tmp git checkout -B media/cover rm -rf * - git checkout aurora - name: Pull a random cover from ur Pinterest - run: | - cd photo - python anime.py "${{ secrets.PINTEREST_EMAIL }}" "${{ secrets.PINTEREST_PASSWORD }}" "${{ secrets.PINTEREST_USERNAME }}" + run: python /tmp/anime.py "${{ secrets.PINTEREST_EMAIL }}" "${{ secrets.PINTEREST_PASSWORD }}" "${{ secrets.PINTEREST_USERNAME }}" - name: Commit new cover run: |