fix(ci): add personal access token as environment variable for successful push to github repo
This commit is contained in:
parent
547bace22a
commit
fd67cc7de9
14
.github/workflows/rss.yml
vendored
14
.github/workflows/rss.yml
vendored
@ -23,15 +23,17 @@ jobs:
|
|||||||
- name: Generate RSS feeds from source into Markdown formatting
|
- name: Generate RSS feeds from source into Markdown formatting
|
||||||
run: |
|
run: |
|
||||||
yarn generate
|
yarn generate
|
||||||
- name: Commit changed README file and push to repository
|
- name: Commit changed README file
|
||||||
run: |
|
run: |
|
||||||
git diff
|
git diff
|
||||||
git config --global user.email "hello@toshiki.dev"
|
git config --global user.email "hello@toshiki.dev"
|
||||||
git config --global user.name "@andatoshiki"
|
git config --global user.name "@andatoshiki"
|
||||||
|
git remote set-url --push origin https://andatoshiki:${{ secrets.GH_PAT }}@github.com/andatoshiki/andatoshiki
|
||||||
git add .
|
git add .
|
||||||
git commit -m 'chore(update): update readme with the latest rss feeds'
|
git commit -m 'chore(update): update readme with the latest rss feeds'
|
||||||
- name: Push changes to repository
|
git push -f origin master
|
||||||
uses: ad-m/github-push-action@master
|
# - name: Push changes to repository
|
||||||
with:
|
# uses: ad-m/github-push-action@master
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
# with:
|
||||||
branch: ${{ github.ref }}
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# branch: ${{ github.ref }}
|
||||||
Loading…
Reference in New Issue
Block a user