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

Write (or find existing) GitHub Action for fetching another repository at the same branch name #10767

Open
matrixbot opened this issue Dec 19, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 19, 2023

This issue has been migrated from #10767.


We used to rely on $BUILDKITE_BRANCHfor this. GitHub's actions are finer-grained and don't have a 1:1 replacement for this environment variable.

matrix-org/synapse#10160 uses a shell script to try and extract a branch name from various environment variables. Failing that, it falls back to a specific named mainline branch. I needed this in matrix-org/sytest#1129. It'd be nice if we had an action for this rather than copying and pasting a shell script everywhere.

Raising this against synapse for now, in lieu of a place for generic matrix-org issues.

@matrixbot matrixbot changed the title Dummy issue Write (or find existing) GitHub Action for fetching another repository at the same branch name Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant