Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip CI or noCICD type comment #4981

Open
1 task
timvia opened this issue Oct 4, 2024 · 2 comments
Open
1 task

Skip CI or noCICD type comment #4981

timvia opened this issue Oct 4, 2024 · 2 comments
Labels
feature New functionality/enhancement

Comments

@timvia
Copy link

timvia commented Oct 4, 2024

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.

Describe the user story
We have a set of terraform plans that on completion creates config files which are then commited via workflow steps.

The issue we have is that we use autoplan and automerge. Upon the commit atlantis re-runs the plan even though no .tf files have been edited. Our created files are only .yml. This commit and autoplan blocks the automerge from completing.

Example atlantis.yaml

---
version: 3
automerge: true

projects:
- name: project name
  dir: ./project
  workspace: default
  delete_source_branch_on_merge: true
  autoplan:
    when_modified: ["*.tf"]
    enabled: true
  apply_requirements: [mergeable]
  workflow: deployment_workflow

workflows
  deployment_workflow:
    plan:
      steps: [init, plan]
    apply:
      steps:
        - apply
        - run: |
            #!/bin/bash
            set -euxo pipefail

            cd $DIR/..
            if ! git diff --exit-code; then
              git add .
              git commit -m "chore: Adding terraform generated files" --author="atlantis <[email protected]>"
              git push
            fi

Describe the solution you'd like
Is there any way of adding a commit flag that will skip the autoplan? something like "SkipCI" or "noCICD"

To work around this we have turned off auto plan. Ideally we would like to keep this enabled to keep required steps to a minimum.

@timvia timvia added the feature New functionality/enhancement label Oct 4, 2024
@mohit-nagaraj
Copy link

sure this looks interesting to work on

@mohit-nagaraj
Copy link

mohit-nagaraj commented Oct 12, 2024

[skip ci] text in commit should be able to cancel running of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants