Skip to content

Commit

Permalink
Just try a different commit+push action
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray committed Sep 26, 2024
1 parent 597ff75 commit 13ba6f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/generate_api_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
# and only run it when the PR is against the main branch of our repo
if: "!contains(github.event.head_commit.message, '[openapi skip]') && github.repository=='conda-incubator/conda-store'"
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
defaults:
run:
Expand All @@ -26,8 +28,9 @@ jobs:
- name: "Checkout repository 🛎️"
uses: actions/checkout@v4
with:
fetch-depth: 0
# Must set the ref so that this works in github actions; see
# https://github.com/stefanzweifel/git-auto-commit-action/tree/master?tab=readme-ov-file#example-workflow
ref: ${{ github.head_ref }}

- name: "Set up Miniconda 🐍"
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -44,9 +47,7 @@ jobs:
mv docusaurus-docs/static/openapi.json.formatted docusaurus-docs/static/openapi.json
- name: "Commit changes"
uses: EndBug/add-and-commit@v9
uses: stefanzweifel/git-auto-commit-action@v5
with:
default_author: github_actions
message: 'Update REST API documentation (openapi.json)'
add: 'docusaurus-docs/static/openapi.json'
push: true
commit_message: 'Update REST API documentation (openapi.json)'
file_pattern: 'docusaurus-docs/static/openapi.json'

0 comments on commit 13ba6f3

Please sign in to comment.