https://github.com/perlpunk/action-open-build-service-pr
Trigger OBS Build on push or pull request
https://github.com/perlpunk/action-open-build-service-pr
Last synced: 4 months ago
JSON representation
Trigger OBS Build on push or pull request
- Host: GitHub
- URL: https://github.com/perlpunk/action-open-build-service-pr
- Owner: perlpunk
- Created: 2020-06-11T09:58:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T18:47:44.000Z (about 5 years ago)
- Last Synced: 2024-12-20T19:25:26.494Z (6 months ago)
- Language: Perl
- Homepage:
- Size: 53.7 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OBS Build PR
Branch and Build OBS project on Pull Request
This action will branch a given OBS package and edit the url and revision
in the `_service` file.Then it will monitor the build status and post this status via the
[Status API](https://developer.github.com/v3/repos/statuses/).It will monitor as long there are pending builds.
If there is a failed build, it will abort and report failure.
If the timeout exceeds, it will abort and report pending.
Builds that are marked as `finished` but where the build details say
`succeeded` will be counted as success.The duration of the builds will be displayed at the end.
## Inputs
### `apiurl`
**Required** obs api url.
### `project`
**Required** obs project.
### `package`
**Required** obs package.
### `branchprefix`
**Required** OBS project path prefix for the branched package.
### `timeout`
Timeout (seconds) after which the job stops (with a failure). Default `600`.
### `sleep`
Time to sleep (seconds) between checking the build status. Default `30`.
### `ignore-repos`
Repositories (comma separated) which should not result in a failure
.## Outputs
### `branch`
The path of the branched package
## Example Usage
- name: Branch OBS Project
uses: perlpunk/[email protected]
id: obs
with:
apiurl: https://api.opensuse.org
project: devel:openQA
package: os-autoinst
branchprefix: home:$USER:branches:TestGitHub
ignore-repos: SLE_12_SP4,SLE_12_SP3
timeout: 600 # default
sleep: 30 # default
env:
OSCLOGIN: ${{ secrets.OSCLOGIN }}
OSCPASS: ${{ secrets.OSCPASS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}This will create a package
home:$USER:branches:TestGitHub:devel:openQA-branch-branchname:os-autoinst
home:$USER:branches:TestGitHub:devel:openQA-pr-123:os-autoinstWhere `$USER` will be replaced with your `$OSCLOGIN`.
If you are using this action from a fork, you need to add the secrets
`OSCLOGIN` and `OSCPASS` into the forked project's settings.## Screenshots


