Skip to content

Commit

Permalink
tmp1
Browse files Browse the repository at this point in the history
  • Loading branch information
maastha committed Dec 17, 2024
1 parent 10374e5 commit 46cda26
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/autoupdate-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,42 @@ jobs:
git commit --allow-empty -m "fix: update OpenAPI spec"
# - name: Set old commit for SDK API diff
# run: echo "API_DIFF_OLD_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Run generation
working-directory: ./tools
run: |
export PATH=${PATH}:`go env GOPATH`/bin
make clean_and_generate
- name: Verify Changed files
uses: tj-actions/verify-changed-files@530d86d0a237225c87beaa000750988f8965ee31
id: verify-changed-files
with:
files: |
./admin/**/*
- name: Run docs generation
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: make gen-docs
- name: Commit Generator Changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git add . && git commit -m "fix: Generated SDK source code and docs"
# - name: Run generation
# working-directory: ./tools
# run: |
# export PATH=${PATH}:`go env GOPATH`/bin
# make clean_and_generate
# - name: Verify Changed files
# uses: tj-actions/verify-changed-files@530d86d0a237225c87beaa000750988f8965ee31
# id: verify-changed-files
# with:
# files: |
# ./admin/**/*
# - name: Run docs generation
# if: steps.verify-changed-files.outputs.files_changed == 'true'
# run: make gen-docs
# - name: Commit Generator Changes
# if: steps.verify-changed-files.outputs.files_changed == 'true'
# run: |
# git add . && git commit -m "fix: Generated SDK source code and docs"
# - name: Set new commit for SDK API diff
# if: steps.verify-changed-files.outputs.files_changed == 'true'
# run: echo "API_DIFF_NEW_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Release updates
if: steps.verify-changed-files.outputs.files_changed == 'true'
# if: steps.verify-changed-files.outputs.files_changed == 'true'
working-directory: ./tools
run: make new-version
- name: Ensure all markdown code is formatted
if: steps.verify-changed-files.outputs.files_changed == 'true'
# if: steps.verify-changed-files.outputs.files_changed == 'true'
working-directory: ./tools
run: |
npm install && npm run format
- name: Run mock generation
working-directory: ./tools
if: steps.verify-changed-files.outputs.files_changed == 'true'
# if: steps.verify-changed-files.outputs.files_changed == 'true'
run: make generate_mocks
- uses: peter-evans/create-pull-request@v7
if: steps.verify-changed-files.outputs.files_changed == 'true'
# if: steps.verify-changed-files.outputs.files_changed == 'true'
with:
token: ${{ secrets.APIX_BOT_PAT }}
title: "APIBot: SDK update based on recent changes in Atlas API"
Expand Down

0 comments on commit 46cda26

Please sign in to comment.