Skip to content

Commit 3d47ac7

Browse files
authored
Add storyblok api token to workflow (#187)
* Add storyblok api token to workflow Signed-off-by: Leonardo Rossi <[email protected]> * add token to other referenced workflows Signed-off-by: Leonardo Rossi <[email protected]> * fixup Signed-off-by: Leonardo Rossi <[email protected]> * fixup Signed-off-by: Leonardo Rossi <[email protected]> --------- Signed-off-by: Leonardo Rossi <[email protected]>
1 parent 1d64de4 commit 3d47ac7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
secrets:
2929
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
3030
TARGET_REPO: ${{ secrets.TARGET_REPO }}
31+
STORYBLOK_ACCESS_TOKEN: ${{ secrets.STORYBLOK_ACCESS_TOKEN }}
3132
repository-dispatch:
3233
if: (github.event_name == 'repository_dispatch' && github.event.action == 'update_docs')
3334
uses: platformatic/docs/.github/workflows/rebuild-and-deploy-docs.yml@main
@@ -38,6 +39,7 @@ jobs:
3839
secrets:
3940
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
4041
TARGET_REPO: ${{ secrets.TARGET_REPO }}
42+
STORYBLOK_ACCESS_TOKEN: ${{ secrets.STORYBLOK_ACCESS_TOKEN }}
4143
workflow-dispatch:
4244
if: (github.event_name == 'workflow_dispatch')
4345
uses: platformatic/docs/.github/workflows/rebuild-and-deploy-docs.yml@main
@@ -48,3 +50,4 @@ jobs:
4850
secrets:
4951
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
5052
TARGET_REPO: ${{ secrets.TARGET_REPO }}
53+
STORYBLOK_ACCESS_TOKEN: ${{ secrets.STORYBLOK_ACCESS_TOKEN }}

.github/workflows/rebuild-and-deploy-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ on:
3232
TARGET_REPO:
3333
description: "The repo where Docusaurus is"
3434
required: true
35+
STORYBLOK_ACCESS_TOKEN:
36+
description: "Storyblok access token"
37+
required: true
3538
jobs:
3639
build-and-publish:
3740
runs-on: ubuntu-latest
@@ -53,6 +56,7 @@ jobs:
5356
env:
5457
TARGET_REPO: ${{ secrets.TARGET_REPO }}
5558
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
59+
STORYBLOK_ACCESS_TOKEN: ${{ secrets.STORYBLOK_ACCESS_TOKEN }}
5660
- name: Print current versions
5761
run: |
5862
echo "Remote versions: ${{ steps.check.outputs.remote-versions }}"
@@ -65,6 +69,7 @@ jobs:
6569
env:
6670
TARGET_REPO: ${{ secrets.TARGET_REPO }}
6771
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
72+
STORYBLOK_ACCESS_TOKEN: ${{ secrets.STORYBLOK_ACCESS_TOKEN }}
6873
- name: Push commit
6974
if: inputs.original_event == 'push_on_main' || inputs.force || steps.check.outputs.needs-update == 'true'
7075
uses: stefanzweifel/git-auto-commit-action@v4

0 commit comments

Comments
 (0)