Skip to content

Added autosubmission GitHub Action #5

Added autosubmission GitHub Action

Added autosubmission GitHub Action #5

Workflow file for this run

# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Submit
on:
# allow running manually
workflow_dispatch:
# when committing to master
push:
# FIXME:
# branches: master
branches: autosubmission
jobs:
submit:
# do not run in forks
if: github.repository == 'yast/yast-devtools'
runs-on: ubuntu-latest
container:
image: registry.opensuse.org/yast/head/containers_tumbleweed/yast-rake:latest
# "osc build" needs to mount /proc in the build system chroot
options: --privileged
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Fix permissions to avoid git failures
run: chown -R -c 0 .
- name: Configure osc
run: .github/workflows/osc/configure_osc.sh
env:
OBS_USER: ${{ secrets.OBS_USER }}
OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }}
- name: Run rake
run: rake osc:sr