Skip to content

Commit

Permalink
.github/workflows/generate - generate on PRs (#52)
Browse files Browse the repository at this point in the history
Test module generation on pull requests.
  • Loading branch information
andrewkroh authored Sep 17, 2024
1 parent dd453b1 commit 2cf0980
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches:
- 'main'
pull_request:
branches:
- main

jobs:
integrations:
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
run: echo "modified=$(if git status --porcelain --untracked-files=no | grep -q -E 'module.tf.json$|README.md$'; then echo "true"; else echo "false"; fi)" >> $GITHUB_OUTPUT

- name: commit updated modules
if: steps.is-changed.outputs.modified == 'true'
if: github.event_name != 'pull_request' && steps.is-changed.outputs.modified == 'true'
env:
INTEGRATIONS_COMMIT: ${{ steps.integrations.outputs.commit }}
run: |
Expand Down

0 comments on commit 2cf0980

Please sign in to comment.