checkout icon indicating copy to clipboard operation
checkout copied to clipboard

action delete content after checkout step was finished

Open NSLog0 opened this issue 3 years ago • 1 comments

I'm trying to build a workflow with terraform. there is a step to call terraform plan --var-file="./terraform-dev.tfvars" it turns out that actions/checkout@v2 remove all my code. so I cannot refer to any tfvars

The step of checkout:

Screen Shot 2565-02-22 at 18 35 10

Error details: Screen Shot 2565-02-22 at 12 00 30

code snippet:

steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          clean: false

Any idea? thannks

NSLog0 avatar Feb 22 '22 15:02 NSLog0

I think I have found the issue in my case, I setup a ref parameter too, and that runs with git checkout --force, meaning that it will drop changes if they have conflicts. Maybe that is it?

chamini2 avatar Jul 21 '22 15:07 chamini2