Skip to content

Commit 9157312

Browse files
committed
dev: improve ci runs; run once either on push in main or if pull request into main exists and pushes are added to branch with open PR
piggyback: improve ci setup; account for duplicate runs tryout to fix duplicate ci runs the other way
1 parent e31b08a commit 9157312

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
8+
branches:
9+
- main
610
workflow_dispatch:
711

812
jobs:

internal/config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type Config struct {
1515

1616
func Load() (Config, error) {
1717
cfg := Config{
18-
Database: getEnv("DATABASE", ""),
19-
Port: getEnv("PORT", "8080"),
20-
PackagesMirror: getEnv("PACKAGES_MIRROR", "https://geo.mirror.pkgbuild.com/"),
21-
DefaultMirror: getEnv("DEFAULT_MIRROR", "https://geo.mirror.pkgbuild.com/"),
18+
Database: getEnv("DATABASE", ""),
19+
Port: getEnv("PORT", "8080"),
20+
PackagesMirror: getEnv("PACKAGES_MIRROR", "https://geo.mirror.pkgbuild.com/"),
21+
DefaultMirror: getEnv("DEFAULT_MIRROR", "https://geo.mirror.pkgbuild.com/"),
2222
AppStreamSourcesBase: getEnv("APPSTREAM_SOURCES_BASE", "https://sources.archlinux.org/other/packages/archlinux-appstream-data/"),
2323
}
2424

0 commit comments

Comments
 (0)