Skip to content

Commit

Permalink
chore(rest): Ensure CI script checks out before regenerating OAS API
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidnioulz committed Oct 28, 2024
1 parent 769f511 commit c2da7d8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/automerge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,28 @@ jobs:
node-version: [22]
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.title, 'Bump the oas group')
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '22'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Regenerate API clients on OpenAPI Spec change
run: |
pnpm api:regen
pnpm format
- name: Commit regenerated API clients
run: |
git config user.name github-actions-shell
Expand All @@ -40,6 +48,7 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

dependabot-approve:
needs: [dependabot-regen-api]
runs-on: ubuntu-latest
Expand Down

0 comments on commit c2da7d8

Please sign in to comment.