https://github.com/mozilla-mobile/update-experiments
https://github.com/mozilla-mobile/update-experiments
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mozilla-mobile/update-experiments
- Owner: mozilla-mobile
- License: mit
- Created: 2022-08-04T14:03:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-22T16:53:37.000Z (almost 3 years ago)
- Last Synced: 2024-05-09T08:10:56.804Z (about 2 years ago)
- Language: Shell
- Size: 20.5 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Update initial experiments docker action
This action downloads a list of experiments from experimenter and writes them to the repository. If changes are made, it will open a new pull request or update an existing pull request.
## Inputs
### `repo-path`
**Required** The relative or absolute path to the checked out repository. Example: `main`
### `output-path`
**Requried** The relative file path (from the repo path) to which the downloaded experiments should be written. Example: `app/src/main/res/raw/initial_experiments.json`
### `experimenter-url`
URL from which to fetch Nimbus experiments. Default: `https://experimenter.services.mozilla.com/api/v6/experiments/?is_first_run=True`
### `app-name`
**Required** App name by which to filter experiments. Example: `fenix`
### `branch`
**Required** Remote branch to check diff against. Example: `automation/update-nimbus-experiments`
## Outputs
### `changed`
The number of files that were modified as part of the script.
### `changed-branch`
The number of files that were modified as compared to the supplied remote branch.
## Example usage
```yaml
uses: jeddai/update-initial-experiments@v1
with:
repo-path: main
output-path: app/src/main/res/raw/initial_experiments.json
experimenter-url: https://experimenter.services.mozilla.com/api/v6/experiments/
branch: automation/update-nimbus-experiments
```