Skip to content

Translations update from Fedora Weblate #854

Translations update from Fedora Weblate

Translations update from Fedora Weblate #854

Workflow file for this run

name: tito
on:
pull_request:
workflow_dispatch:
jobs:
tito:
name: "tito"
strategy:
fail-fast: false
matrix:
include:
- name: "CentOS Stream 8"
image: "quay.io/centos/centos:stream8"
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- name: "Use CentOS Vault"
run: |
sed -i 's|#baseurl=http://mirror|baseurl=http://vault|' /etc/yum.repos.d/CentOS-Stream-*.repo
- name: Install core packages
run: |
dnf --setopt install_weak_deps=False install -y \
git-core dnf-plugins-core rpm-build sudo
- name: Enable PowerTools repository
run: |
dnf config-manager --enable powertools
- name: Checkout repository
uses: actions/checkout@v3
# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'
- name: Install npm
run: |
dnf --setopt install_weak_deps=False install -y \
npm
- name: Install packages
run: |
dnf --setopt install_weak_deps=False builddep -y \
-D '%global python3_pkgversion 3' \
subscription-manager.spec
- name: Install tito
run: |
dnf --setopt install_weak_deps=False install -y \
python3-pip python3-setuptools
python3 -m pip install https://github.com/rpm-software-management/tito/archive/refs/tags/tito-0.6.22-1.tar.gz
- name: Build the package
run: |
tito build --output=tito/ --test --rpm
- name: Upload RPMs
uses: actions/upload-artifact@v3
with:
name: RPMs from tito (${{ matrix.name }})
path: tito/
retention-days: 7