mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
ci: avoid building Linux packages for each pull-request
This commit is contained in:
parent
8df4b780a8
commit
3466e9e2d6
2 changed files with 8 additions and 8 deletions
8
.github/workflows/debian_packages.yml
vendored
8
.github/workflows/debian_packages.yml
vendored
|
@ -5,11 +5,11 @@ on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+'
|
- '[0-9]+.[0-9]+.[0-9]+'
|
||||||
pull_request:
|
schedule:
|
||||||
branches: [ main ]
|
- cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday
|
||||||
jobs:
|
jobs:
|
||||||
test-packages:
|
test-packages:
|
||||||
if: github.event.pull_request
|
if: github.event_name == 'schedule'
|
||||||
name: Test Packages
|
name: Test Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: List generated files
|
- name: List generated files
|
||||||
run: ls -l *.deb
|
run: ls -l *.deb
|
||||||
build-packages-manually:
|
build-packages-manually:
|
||||||
if: github.event_name != 'pull_request' && github.event_name != 'push'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
name: Build Packages Manually
|
name: Build Packages Manually
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
8
.github/workflows/rpm_packages.yml
vendored
8
.github/workflows/rpm_packages.yml
vendored
|
@ -5,11 +5,11 @@ on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+'
|
- '[0-9]+.[0-9]+.[0-9]+'
|
||||||
pull_request:
|
schedule:
|
||||||
branches: [ main ]
|
- cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday
|
||||||
jobs:
|
jobs:
|
||||||
test-package:
|
test-package:
|
||||||
if: github.event.pull_request
|
if: github.event_name == 'schedule'
|
||||||
name: Test Packages
|
name: Test Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- name: List generated files
|
- name: List generated files
|
||||||
run: ls -l *.rpm
|
run: ls -l *.rpm
|
||||||
build-package-manually:
|
build-package-manually:
|
||||||
if: github.event_name != 'pull_request' && github.event_name != 'push'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
name: Build Packages Manually
|
name: Build Packages Manually
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue