Skip to content

Rerunning a plan or running an apply should set atlantis/post_workflow_hook to pending #3007

Open
@nitrocode

Description

@nitrocode

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

Rerunning a plan or running an apply should set atlantis/post_workflow_hook to pending

This issue may also affect atlantis/pre_workflow_run

Reproduction Steps

  1. Open a PR
  2. Run atlantis plan
  3. Rerun atlantis plan
  4. Notice that the atlantis/post_workflow_hook is stuck in "succeeded" instead of going to "pending"

Logs

N/A

Environment details

  • Atlantis version: 0.22.3

Atlantis server-side config file:

repos:
  - id: /.*/
    apply_requirements:
      - mergeable
      - approved
    workflow: terraform
    post_workflow_hooks:
      - run: |
          echo "Post workflow run completed successfully"

Additional Context

The only way to know it is a different run is due to the job id changing in the URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions