Skip to content

Commit

Permalink
ci(api): try to check out all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jul 6, 2023
1 parent b868b02 commit 9981ce5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9981ce5

Please sign in to comment.