mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:38:30 +00:00
fix: correct paths for RPM package artifacts and update repository indexing
This commit is contained in:
13
.github/workflows/dexoron-packages-index.yml
vendored
13
.github/workflows/dexoron-packages-index.yml
vendored
@@ -18,7 +18,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
update-packages-index:
|
update-packages-index:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_workflow_run.conclusion == 'success' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Central Packages Repo
|
- name: Checkout Central Packages Repo
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rpm-package
|
name: rpm-package
|
||||||
path: central-packages/rpm/x86_64/
|
path: central-packages/fedora/x86_64/
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run-id: ${{ github.event.workflow_run.id }}
|
run-id: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
@@ -68,7 +68,8 @@ jobs:
|
|||||||
echo "Запрошен ручной импорт пакетов из релиза $TAG репозитория dexoron/dcr..."
|
echo "Запрошен ручной импорт пакетов из релиза $TAG репозитория dexoron/dcr..."
|
||||||
gh release download "$TAG" --repo dexoron/dcr --pattern "*.pkg.tar.zst" --dir central-packages/archlinux/x86_64/ --clobber
|
gh release download "$TAG" --repo dexoron/dcr --pattern "*.pkg.tar.zst" --dir central-packages/archlinux/x86_64/ --clobber
|
||||||
gh release download "$TAG" --repo dexoron/dcr --pattern "*.deb" --dir central-packages/debian/ --clobber
|
gh release download "$TAG" --repo dexoron/dcr --pattern "*.deb" --dir central-packages/debian/ --clobber
|
||||||
gh release download "$TAG" --repo dexoron/dcr --pattern "*.rpm" --dir central-packages/rpm/x86_64/ --clobber
|
gh release download "$TAG" --repo dexoron/dcr --pattern "*.rpm" --dir central-packages/fedora/x86_64/ --clobber
|
||||||
|
|
||||||
# --- ИНДЕКСАЦИЯ REPO ---
|
# --- ИНДЕКСАЦИЯ REPO ---
|
||||||
|
|
||||||
- name: Update Pacman Database (Inside Arch Container)
|
- name: Update Pacman Database (Inside Arch Container)
|
||||||
@@ -109,7 +110,7 @@ jobs:
|
|||||||
- name: Update Fedora DNF Repository Index
|
- name: Update Fedora DNF Repository Index
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install -y createrepo-c
|
sudo apt-get update && sudo apt-get install -y createrepo-c
|
||||||
cd central-packages/rpm/x86_64
|
cd central-packages/fedora/x86_64
|
||||||
|
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
rpm_packages=(*.rpm)
|
rpm_packages=(*.rpm)
|
||||||
@@ -130,8 +131,8 @@ jobs:
|
|||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
git add archlinux/ debian/ rpm/
|
git add archlinux/ debian/ fedora/
|
||||||
git commit -m "chore: update repositories index (arch, debian, rpm)"
|
git commit -m "chore: update repositories index (arch, debian, fedora)"
|
||||||
git push
|
git push
|
||||||
else
|
else
|
||||||
echo "No changes detected in repository databases."
|
echo "No changes detected in repository databases."
|
||||||
|
|||||||
Reference in New Issue
Block a user