Skip to content

Commit

Permalink
Merge branch 'main' into fharper/docker-check
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Jul 21, 2023
2 parents 66b975c + 9310d68 commit ffdb115
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Check Docusaurus Build
on: push

jobs:
check-build:
runs-on: ubuntu-latest
steps:

- name: Checkout the code
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: v19.6.0
cache: npm

- name: Cache Node.js packages
id: cache-npm
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install Dependencies
run: npm ci

- name: Build Docusaurus
run: npm run build 2> >(tee build.error)

- name: Check if build has warnings
run: cat build.error | grep "\[WARNING\]" && echo "::error::Fix the warnings" && exit 1 || exit 0
24 changes: 24 additions & 0 deletions .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Update copyright years

on:
schedule:
- cron: '0 4 1 1 *' # Midnight of December 31st (GitHub Action are using UTC)
workflow_dispatch:

jobs:
update-license-year:
runs-on: ubuntu-latest
steps:

- uses: actions/[email protected]

- uses: FantasticFiasco/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commitAuthorName: 'kube1st'
commitAuthorEmail: ${{ secrets.GPG_EMAIL }}
gpgPrivateKey: ${{ secrets.GPG_KEY }}
gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }}
commitTitle: "chore: update license years with {{currentYear}}"
prTitle: "chore: update license years with {{currentYear}}"
4 changes: 2 additions & 2 deletions charts/docs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: bc421f4
appVersion: 1a862d5
description: Kubefirst documentation Helm chart
name: docs
type: application
version: 0.53.0
version: 0.54.0

0 comments on commit ffdb115

Please sign in to comment.