diff --git a/.github/workflows/snippets.yaml b/.github/workflows/snippets.yaml index c0781cd4..34bffa0f 100644 --- a/.github/workflows/snippets.yaml +++ b/.github/workflows/snippets.yaml @@ -16,10 +16,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '20' @@ -37,3 +40,5 @@ 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 }} \ No newline at end of file