Skip to content

Commit

Permalink
update docs on merge to main rather than pr
Browse files Browse the repository at this point in the history
  • Loading branch information
lharries committed Aug 3, 2024
1 parent 78cc22b commit f0e8369
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/snippets.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Create OpenAPI with Snippets

on:
pull_request:
push:
branches:
- main

Expand All @@ -16,13 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: '20'

Expand All @@ -40,5 +37,3 @@ jobs:
add: 'openapi.json'
author_name: GitHub Action
author_email: actions@github.com
message: 'Update OpenAPI spec from GitHub Actions'
push: origin ${{ github.head_ref }}

0 comments on commit f0e8369

Please sign in to comment.