Fix mandatory patterns for SLES16.0 (#1736) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Submit agama-installer | |
on: | |
# runs on pushes targeting the default branch | |
push: | |
branches: | |
- master | |
- release | |
paths: | |
# run only when a live ISO source is changed | |
- live/** | |
# allow running manually | |
workflow_dispatch: | |
jobs: | |
update_staging_package: | |
# do not run in forks which do not set the OBS_PROJECT variable | |
if: vars.OBS_PROJECT != '' | |
runs-on: ubuntu-latest | |
container: | |
image: registry.opensuse.org/opensuse/tumbleweed:latest | |
steps: | |
- name: Configure and refresh repositories | |
# disable unused repositories to have a faster refresh | |
run: zypper modifyrepo -d repo-non-oss repo-openh264 repo-update && zypper ref | |
- name: Install tools | |
run: zypper --non-interactive install --no-recommends | |
findutils git make osc obs-service-format_spec_file | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Configure git | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Configure osc | |
run: .github/workflows/configure_osc.sh | |
env: | |
OBS_USER: ${{ secrets.OBS_USER }} | |
OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }} | |
- name: Checkout ${{ vars.OBS_PROJECT }} agama-installer | |
run: osc co -o dist ${{ vars.OBS_PROJECT }} agama-installer | |
working-directory: ./live | |
- name: Build sources | |
run: make clean && make | |
working-directory: ./live | |
- name: Update OBS files | |
run: osc addremove | |
working-directory: ./live/dist | |
- name: Check status | |
run: osc diff && osc status | |
working-directory: ./live/dist | |
- name: Commit agama-installer to ${{ vars.OBS_PROJECT }} | |
run: osc commit -m "Updated to Agama $GITHUB_SHA" | |
working-directory: ./live/dist |