Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #187 from smartive-education/feature/workflows1
Browse files Browse the repository at this point in the history
feat: run healthcheck after deployment
  • Loading branch information
webrooster authored Jun 20, 2023
2 parents 454e650 + 64791ce commit a6cb577
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: System Health Check
on:
schedule:
- cron: '0 */6 * * *'
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
test:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ jobs:
PASSWORD: ${{ secrets.PASSWORD }}
ZITADEL_CLIENT_ID: ${{ secrets.ZITADEL_CLIENT_ID }}
ZITADEL_ISSUER: ${{ secrets.ZITADEL_ISSUER }}

healthchecks:
uses: ./.github/workflows/healthcheck.yml
needs: [release-and-deploy]
if: ${{ needs.release-and-deploy.outputs.new_release_published == 'true' }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
required: true
ZITADEL_CLIENT_ID:
required: true
outputs:
new_release_published:
description: 'New release published'
value: ${{ jobs.release.outputs.new_release_published }}

concurrency:
group: 'release'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Page({
fallbackUsers: QwackerUserResponse;
fallbackUserLoggedIn: User;
}) {
console.log(`Testing workflows :-)`);
console.log(`Testing workflows 2 :-)`);
return (
<>
<NextSeo title={`${Content.seo.home.title}`} description={`${Content.seo.home.description}`} />
Expand Down

0 comments on commit a6cb577

Please sign in to comment.