mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
🐜 fix(ci): Fix scheduled runners not working (#149)
This commit is contained in:
7
.github/workflows/runner.yml
vendored
7
.github/workflows/runner.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
- "packages/server/**"
|
||||
- ".github/workflows/runner.yml"
|
||||
schedule:
|
||||
- cron: 0 0 * * * # At the end of everyday
|
||||
- cron: 7 0 * * 1,3,6 # Regularly to keep that build cache warm
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
@@ -35,6 +35,9 @@ jobs:
|
||||
build-docker-pr:
|
||||
name: Build image on PR
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
steps:
|
||||
-
|
||||
@@ -70,7 +73,7 @@ jobs:
|
||||
|
||||
build-docker-main:
|
||||
name: Build image on main
|
||||
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user