Set up a GitHub Actions workflow to run plan on PR and apply on merge. The apply step fails with a state lock error even though the pipeline is sequential. The workflow looks like this:
- name: Terraform Apply
run: terraform apply -auto-approve
Any ideas on how to handle the state lock properly?