Skip to content

Commit

Permalink
Allow terraform-docs push
Browse files Browse the repository at this point in the history
  • Loading branch information
d-costa committed Nov 11, 2024
1 parent c9bcfb9 commit dbeba67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: planetscale/[email protected]
# Run this step even if previous steps fails (there are changes to commit)
# but skip when on forks
if: ${{ !cancelled() && github.repository_owner == 'runatlantis' }}
if: ${{ !cancelled() }}
with:
commit_message: "terraform-docs: automated action"
repo: ${{ github.repository }}
Expand All @@ -56,7 +56,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Print instructions to run terraform-docs locally if changes are needed and workflow is running on fork
- if: ${{ !cancelled() && github.repository_owner != 'runatlantis' && steps.terraform-docs.outputs.num_changed > 0 }}
- if: ${{ !cancelled() && steps.terraform-docs.outputs.num_changed > 0 }}
run: |
echo '### Please run terraform-docs locally and commit the changes:' >> $GITHUB_STEP_SUMMARY
echo '' >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit dbeba67

Please sign in to comment.