mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-23 12:00:40 +00:00
* feat(ci): add no_upload_srpms label
This also fixes manual builds to support subrepos properly.
* to make sure it actually works
* manually set permissions
(cherry picked from commit bc5a6c144c)
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# for each folder in anda/
|
||||
# generate a new workflow for each folder in anda/
|
||||
name: Automatically build packages
|
||||
permissions:
|
||||
contents: read
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -96,7 +98,7 @@ jobs:
|
||||
terra${{ matrix.version }}${{ matrix.pkg.labels['subrepo'] && '-$subrepo' || '' }} anda-build/rpm/rpms/*
|
||||
|
||||
- name: Upload source packages to subatomic
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && matrix.pkg.labels['no_upload_srpms'] != '1'
|
||||
run: |
|
||||
subrepo="${{ matrix.pkg.labels.subrepo }}"
|
||||
subatomic-cli upload --prune \
|
||||
|
||||
Reference in New Issue
Block a user