I have a workflow where I deploy to an environment and I use the
environment key to mark it as deployment to X and also access environment secrets.
Now after the deploy step I need to do other steps that use the environment secrets, so I added the environment key there as well, the result is that github gets confused and thinks the environment is deployed X times and spams the pull request
My workflow is public so you can see it here:
This is the terraform step: pycon/deploy.yml at 7fed530287a32405dcc1e80e78fd3bee6025e566 · pythonitalia/pycon · GitHub
and then I have multiple steps that upload some data to an external service and need environment secrets: pycon/deploy.yml at 7fed530287a32405dcc1e80e78fd3bee6025e566 · pythonitalia/pycon · GitHub so here I use the environment again
Is there a way to fix this? Ideally I want one “deployment”