Skip to content

Commit

Permalink
# added linter step for generate_api.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
nhtruong committed Feb 6, 2025
1 parent 8a0b76f commit a34d34a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/generate_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ jobs:
bundle exec rake download_spec
bundle exec rake generate_api
# This should only trigger on pull requests that modifies the api_generator directory
# and NOT on the scheduled workflow since the scheduled workflow will trigger the lint workflow instead.
- name: Lint generated files
if: ${{ github.event_name == 'pull_request' }}
working-directory: ./
run: |-
bundle install
bundle exec rubocop
- name: Get current date
id: date
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit a34d34a

Please sign in to comment.