Skip to content

Commit

Permalink
Added commit to YaST:Head GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 2, 2024
1 parent 8946f3c commit 6518406
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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: Commit 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 }}
task: "osc:commit"

0 comments on commit 6518406

Please sign in to comment.