Skip to content

Commit

Permalink
Call generate to update current workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed May 28, 2024
1 parent e1fad7e commit a56dff8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ on:
workflow_dispatch:

jobs:
call-workflow-passing-data:
uses: FAForever/spooky-db/.github/workflows/generate.yaml@feature/deploy-workflow
with:
update: true

deploy:
name: deploy application
runs-on: ubuntu-latest
steps:
# https://docs.github.com/en/actions/using-workflows/reusing-workflows

# https://github.com/actions/checkout/tree/v4/
- name: Checkout spooky db code
uses: actions/checkout@v4
Expand All @@ -16,7 +23,6 @@ jobs:
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:

cache: npm
node-version: 20.x

Expand All @@ -27,7 +33,6 @@ jobs:
path: gh-pages
ref: gh-pages


# - name: Installation
# working-directory: spookydb
# run: |
Expand All @@ -44,7 +49,7 @@ jobs:
- name: Deploying
working-directory: gh-pages
run: |
git log
git log
- name: Uploading
uses: actions/upload-artifact@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Generate blueprint data

on:
workflow_call:
inputs:
update:
description: "Update the repository"
required: false
type: "boolean"
default: false # it is a boolean here...
workflow_dispatch:
inputs:
update:
Expand Down

0 comments on commit a56dff8

Please sign in to comment.