Skip to content

Commit

Permalink
Merge pull request #1093 from disneystreaming/add-scheduled-snapshots
Browse files Browse the repository at this point in the history
Publish snapshots on a schedule, make params bools
  • Loading branch information
Baccata authored Jul 18, 2023
2 parents bb56365 + 8248273 commit b7d981b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ on:
publishSnapshot:
description: "Publish Snapshot"
required: false
default: "false"
default: false
type: boolean
publishMicrosite:
description: "Publish Microsite"
required: false
default: "false"
default: false
type: boolean
push:
branches: ["main", "series/**", "feature/**"]
tags: ["v*"]
pull_request:
branches: ["**"]
schedule:
# midnight, every Monday and Thursday
- cron: '0 0 * * 1,4'

concurrency:
group: ci-${{ github.ref }}
Expand Down Expand Up @@ -99,7 +104,10 @@ jobs:
release:
name: Release
needs: build
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publishSnapshot == 'true') # || (github.ref == 'refs/heads/main')
if:
startsWith(github.ref, 'refs/tags/v') ||
github.event.inputs.publishSnapshot ||
github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -135,7 +143,9 @@ jobs:

microsite:
name: Publish Docs Microsite
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publishMicrosite == 'true')
if:
startsWith(github.ref, 'refs/tags/v') ||
github.event.inputs.publishMicrosite
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
Expand Down

0 comments on commit b7d981b

Please sign in to comment.