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

action delete content after checkout step was finished #703

Open
NSLog0 opened this issue Feb 22, 2022 · 1 comment
Open

action delete content after checkout step was finished #703

NSLog0 opened this issue Feb 22, 2022 · 1 comment

Comments

@NSLog0
Copy link

NSLog0 commented Feb 22, 2022

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

@chamini2
Copy link

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?

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

No branches or pull requests

2 participants