Skip to content

Commit

Permalink
chore: allows to run the nightly per commit. (#106)
Browse files Browse the repository at this point in the history
* chore: allows to run the nightly per commit.

* chore: fixes caddy version on non workflow dispatch.
  • Loading branch information
jcchavezs authored Nov 27, 2023
1 parent 7d2e6fe commit e6cbb66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nightly-caddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
- ".github/workflows/nightly-caddy.yml"
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
inputs:
caddyversion:
description: "caddy version (branch, tag or commit)"
required: true

jobs:
nightly-caddy:
Expand All @@ -30,7 +35,7 @@ jobs:
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@${{ matrix.xcaddy-version }}

- name: Build caddy
run: CADDY_VERSION=master go run mage.go buildCaddyLinux
run: CADDY_VERSION=${{ github.event.inputs.caddyversion || 'master' }} go run mage.go buildCaddyLinux

- name: Run e2e tests
run: go run mage.go e2e

0 comments on commit e6cbb66

Please sign in to comment.