fix: useless git commands on workflow (#2682)
This commit is contained in:
parent
f1b71ab353
commit
e8c67974ab
1 changed files with 0 additions and 16 deletions
16
.github/workflows/fetch_docs_notion.yml
vendored
16
.github/workflows/fetch_docs_notion.yml
vendored
|
|
@ -15,8 +15,6 @@ jobs:
|
|||
- name: Get current date
|
||||
id: date
|
||||
run: echo "DATE=$(date +'%Y%m%d%H%M%S')" >> "$GITHUB_OUTPUT"
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
|
@ -24,15 +22,6 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- name: Create new branch
|
||||
run: |
|
||||
git checkout -b update-docs-${{ steps.date.outputs.DATE }}
|
||||
|
||||
- name: Cache Node.js dependencies
|
||||
uses: actions/cache@v4
|
||||
id: npm-cache
|
||||
|
|
@ -55,11 +44,6 @@ jobs:
|
|||
env:
|
||||
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
|
||||
NOTION_DOCS_ROOT_PAGE_ID: ${{ secrets.NOTION_DOCS_ROOT_PAGE_ID }}
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git add .
|
||||
git commit -m "Update docs from Notion"
|
||||
git push --set-upstream origin update-docs-${{ steps.date.outputs.DATE }}
|
||||
|
||||
- name: Create Pull Request
|
||||
id: create_pr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue