https://github.com/mozilla-mobile/fenix-beta-version
GitHub Action that discovers the current Fenix Beta version
https://github.com/mozilla-mobile/fenix-beta-version
Last synced: about 1 year ago
JSON representation
GitHub Action that discovers the current Fenix Beta version
- Host: GitHub
- URL: https://github.com/mozilla-mobile/fenix-beta-version
- Owner: mozilla-mobile
- License: mpl-2.0
- Created: 2021-04-10T14:39:20.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T08:33:23.000Z (over 3 years ago)
- Last Synced: 2025-03-25T16:51:37.958Z (about 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# extract-major-beta-version
This _GitHub Action_ determines the current major Beta version.
To do this the *GITHUB_REPOSITORY* this is applied to has to:
- have a [_release_](https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases) following the following naming scheme
```
\d+.0.0-beta.\d+
```
- have a file named `version.txt` in the project root containing the latest beta version name (following the same naming scheme as above).
It publishes the last major version of a beta release (like `88`) in the `beta_version` output, which can then be used in other _GitHub Actions_.
Example usage:
```
- name: "Discover the last beta release major version"
id: extract-major-beta-version
uses: mozilla-mobile/extract-major-beta-version@3.0.0
- name "Print the version number"
run: "The current _major beta_ number is $${{steps.extract-major-beta-version.outputs.beta_version}}"
```
This _GitHub Action_ is used in in
- the [github.com/mozilla-mobile/fenix/blob/master/.github/workflows/sync-strings.yml](https://github.com/mozilla-mobile/fenix/blob/master/.github/workflows/sync-strings.yml) workflow
- the [github.com/mozilla-mobile/focus-android/blob/master/.github/workflows/sync-strings.yml](https://github.com/mozilla-mobile/focus-android/blob/master/.github/workflows/sync-strings.yml) workflow.
## Bump dependencies
Just run the following command line. You may need to change the python version to follow what is in `Dockerfile`.
```
docker run -t -v "$PWD:/src" -w /src python:3.10 bash -cx "pip install pip-tools && cd /src/ && pip-compile --upgrade --generate-hashes --output-file requirements.txt requirements.in"
```