element-hq / element-hq/synapse

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

Open
#10,767 0 comments 0 reactions 0 assignees View on GitHub
P4 S-Tolerable T-Task
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#10767](https://github.com/matrix-org/synapse/issues/10767).

---

We used to rely on `$BUILDKITE_BRANCH`for this. GitHub's actions are finer-grained and [don't have a 1:1 replacement for this environment variable](https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables).

https://github.com/matrix-org/synapse/pull/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 https://github.com/matrix-org/sytest/pull/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.