From 1f89a48c2ef23602eb469ce9d01090bf40cdb97b Mon Sep 17 00:00:00 2001 From: andatoshiki Date: Tue, 28 Mar 2023 17:56:56 +0800 Subject: [PATCH] fix(ci): add personal access token as environment variable for successful push to github repo --- .github/workflows/rss.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rss.yml b/.github/workflows/rss.yml index 9ebfd47..672adcf 100644 --- a/.github/workflows/rss.yml +++ b/.github/workflows/rss.yml @@ -23,17 +23,14 @@ jobs: - name: Generate RSS feeds from source into Markdown formatting run: | yarn generate - - name: Commit changed README file + - name: Commit changed README file and push changes to repository run: | git diff git config --global user.email "hello@toshiki.dev" git config --global user.name "@andatoshiki" - git remote set-url --push origin https://andatoshiki:${{ secrets.GH_PAT }}@github.com/andatoshiki/andatoshiki git add . git commit -m 'chore(update): update readme with the latest rss feeds' git push -f origin master - # - name: Push changes to repository - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} \ No newline at end of file + with: + github_token: ${{ secrets.GH_PAT }} + branch: ${{ github.ref }} \ No newline at end of file