Compare commits
11 Commits
ebb711718a
...
45d8edd18d
| Author | SHA1 | Date |
|---|---|---|
|
|
45d8edd18d | 1 month ago |
|
|
aa4285a27f | 1 month ago |
|
|
1e496e5661 | 1 month ago |
|
|
c106a775f7 | 1 month ago |
|
|
b750dbaf34 | 1 month ago |
|
|
de35e64c33 | 1 month ago |
|
|
e4270a1278 | 1 month ago |
|
|
2402219ebb | 1 month ago |
|
|
58ceff36c3 | 1 month ago |
|
|
fa8ee60f0e | 1 month ago |
|
|
347b591957 | 1 month ago |
5 changed files with 139 additions and 1 deletions
@ -0,0 +1,41 @@ |
|||
name: Backport Packages (Daily) |
|||
|
|||
# Everyday at 02:00 UTC |
|||
on: |
|||
schedule: |
|||
- cron: '0 2 * * *' |
|||
# Enables manual triggering of the workflow |
|||
workflow_dispatch: |
|||
|
|||
jobs: |
|||
update-packages: |
|||
runs-on: ubuntu-latest |
|||
|
|||
# Defines the Fedora container for this job |
|||
container: |
|||
image: fedora:latest |
|||
|
|||
steps: |
|||
# 1. Install pre-requisites |
|||
- name: Install pre-requisites |
|||
run: dnf install -y patch git git-lfs |
|||
|
|||
# 2. Checkout the repository |
|||
- name: Checkout repository |
|||
uses: actions/checkout@v4 |
|||
with: |
|||
ref: ${{ github.head_ref }} |
|||
lfs: true |
|||
# We cannot use the default GITHUB_TOKEN as it is restricted and cannot |
|||
# trigger another workflow run, which is needed here to trigger the COPR build |
|||
token: ${{ secrets.COMMIT_TOKEN }} |
|||
|
|||
# 3. Run the update script in the container |
|||
- name: Run update script |
|||
run: ./update.sh |
|||
|
|||
# 4. Push changes (if any) |
|||
- uses: stefanzweifel/git-auto-commit-action@v7 |
|||
with: |
|||
commit_message: Backport packages from upstream |
|||
commit_author: Nicolas Massé <nicolas.masse@itix.fr> |
|||
@ -0,0 +1,40 @@ |
|||
name: Trigger COPR Build |
|||
|
|||
on: |
|||
# Trigger on push, but only for SPECS and SOURCES changes |
|||
push: |
|||
paths: |
|||
- fedora-*/SPECS/*.spec |
|||
- fedora-*/SOURCES/** |
|||
- centos-*/SPECS/*.spec |
|||
- centos-*/SOURCES/** |
|||
|
|||
# Enables manual triggering of the workflow |
|||
workflow_dispatch: |
|||
|
|||
jobs: |
|||
build-copr: |
|||
runs-on: ubuntu-latest |
|||
|
|||
# Defines the Fedora container for this job |
|||
container: |
|||
image: fedora:latest |
|||
|
|||
steps: |
|||
# 1. Install pre-requisites |
|||
- name: Install copr-cli |
|||
run: dnf install -y copr-cli git git-lfs |
|||
|
|||
# 2. Checkout the repository |
|||
- name: Checkout repository |
|||
uses: actions/checkout@v4 |
|||
with: |
|||
ref: ${{ github.head_ref }} |
|||
lfs: true |
|||
|
|||
# 3. Run the build script |
|||
- name: Run COPR build script |
|||
run: ./build.sh |
|||
# Inject secrets into the container as environment variables |
|||
env: |
|||
COPR_CONFIG: ${{ secrets.COPR_CONFIG }} |
|||
Loading…
Reference in new issue