Skip to content

Commit

Permalink
Added Factory autosubmission GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 5, 2024
1 parent 983ae9d commit c5d727b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

strategy:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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: lslezak/actions/submit@master
with:
obs_user: ${{ secrets.OBS_USER }}
obs_password: ${{ secrets.OBS_PASSWORD }}
command: "rake 'osc:build[-M default]' && rake 'osc:build[-M micro]' && rake osc:sr"
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

[![Workflow Status](https://github.com/yast/yast-perl-bindings/workflows/CI/badge.svg?branch=master)](
https://github.com/yast/yast-perl-bindings/actions?query=branch%3Amaster)
[![Jenkins Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-perl-bindings-master)](
https://ci.opensuse.org/view/Yast/job/yast-yast-perl-bindings-master/)
[![OBS](https://github.com/yast/yast-schema/actions/workflows/submit.yml/badge.svg)](https://github.com/yast/yast-schema/actions/workflows/submit.yml)

This package contains the XML schema definition for AutoYaST.

Expand Down

0 comments on commit c5d727b

Please sign in to comment.