diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 61bd12b8ff..dd86c1426b 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -13,6 +13,9 @@ jobs: steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 + with: + # check out all branches + fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 with: @@ -21,19 +24,16 @@ jobs: - name: yarn install run: | yarn install - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - with: - ref: docs-api - name: build run: | git config --global user.email "manast@taskforce.sh" git config --global user.name "manast" - git merge origin/master --no-commit --allow-unrelated-histories + git checkout docs-api + git merge master --no-edit -m "chore: merge master branch on $(date +%F)" yarn pretest yarn docs:json git add . - git commit -m "chore(api): update documentation" --no-verify - git push origin/docs-api + git push docs-api yarn docs:merge env: CI: true