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

Get secrets and environment variables according to environment #19

Open
cortadocodes opened this issue Oct 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@cortadocodes
Copy link
Member

Bug report

What is the current behavior?

The environment variables and secrets in the cd workflow always use the main branch's values, regardless of the branch.

What is the expected behavior?

It should get the values for the current branch.

Proposed Solution

One way is to run the octue/get-deployment-info action before the reusable workflow to get the right branch name. Alternatively, it can be got from the GitHub Actions context.

@cortadocodes cortadocodes added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant