runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.52k stars 1.02k forks source link

[ post_workflow_hooks] sh: command:: not found #4647

Open Gilk260 opened 3 weeks ago

Gilk260 commented 3 weeks ago

Community Note


Overview of the Issue

I try to run some simple command: echo "Hello world!" And all goes as expected until post_workflow_hooks, an error is triggered so the pipeline fails.

Reproduction Steps

I'm using the helm-chart values.yaml to deploy atlantis:

...
post_workflow_hooks:
      - run: |
          echo "Hello world!"
          command: plan
...

Logs

Environment details

Additional Context

X-Guardian commented 1 week ago

Your yaml format is wrong. It should be:

post_workflow_hooks:
  - run: |
      echo "Hello world!"
    commands: plan