From 777a0dd0e4536e00f6c718972a363c907ffd6450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 2 Aug 2024 17:25:10 +0200 Subject: [PATCH] Added Factory autosubmission GitHub Action --- .github/workflows/ci.yml | 3 +++ .github/workflows/submit.yml | 29 +++++++++++++++++++++++++++++ README.md | 3 +-- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/submit.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ca373a..1a4cb38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: [push, pull_request] jobs: Package: + # skip in master, but run in forks + if: github.ref_name != 'master' || github.repository_owner != 'yast' + runs-on: ubuntu-latest container: image: registry.opensuse.org/yast/head/containers/yast-cpp:latest diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml new file mode 100644 index 0000000..766f61e --- /dev/null +++ b/.github/workflows/submit.yml @@ -0,0 +1,29 @@ +# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions + +name: OBS + +on: + # only when committing to master + push: + branches: master + + # allow running manually from GitHub Web + workflow_dispatch: + +jobs: + submit: + # do not run in forks + if: github.repository_owner == 'yast' + + runs-on: ubuntu-latest + + # the default timeout is 6 hours, do not wait for that long if osc gets stucked + timeout-minutes: 30 + + steps: + - name: Submit the package + # see https://github.com/yast/actions/blob/master/submit/action.yml + uses: yast/actions/submit@master + with: + obs_user: ${{ secrets.OBS_USER }} + obs_password: ${{ secrets.OBS_PASSWORD }} diff --git a/README.md b/README.md index b9ed06e..248e27b 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ [![Workflow Status](https://github.com/yast/yast-ruby-bindings/workflows/CI/badge.svg?branch=master)]( https://github.com/yast/yast-ruby-bindings/actions?query=branch%3Amaster) -[![Jenkins Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-ruby-bindings-master)]( -https://ci.opensuse.org/view/Yast/job/yast-yast-ruby-bindings-master/) +[![OBS](https://github.com/yast/yast-ruby-bindings/actions/workflows/submit.yml/badge.svg)](https://github.com/yast/yast-ruby-bindings/actions/workflows/submit.yml) It is part of [YaST](http://yast.github.io) where you can find more information about YaST and its component system. The Ruby bindings cover only the connection to