diff --git a/.github/workflows/generate_api.yml b/.github/workflows/generate_api.yml index 2569fc41c..22332e620 100644 --- a/.github/workflows/generate_api.yml +++ b/.github/workflows/generate_api.yml @@ -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' }}