Trying to get a basic CI/CD flow working for Genesys Cloud resources. The plan step on PRs works fine, but the apply on merge keeps erroring out with a state lock issue. Here’s the relevant workflow snippet:
jobs:
terraform-apply:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Terraform Apply
run: terraform apply -auto-approve
The error says another operation is running, but we’re the only ones touching the main branch. Is there a way to force unlock or handle the state file concurrency better in this setup?