Skip to content

Commit 82c8d8b

Browse files
authored
Fix token of composite action
1 parent 8c0315f commit 82c8d8b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/actions/build/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
repo:
55
description: 'full name of repo'
66
required: false
7+
token:
8+
description: 'token for graphql'
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -51,7 +54,7 @@ runs:
5154
yarn build
5255
echo "modules.lsposed.org" > ./public/CNAME
5356
env:
54-
GRAPHQL_TOKEN: ${{ secrets.GRAPHQL_TOKEN }}
57+
GRAPHQL_TOKEN: ${{ inputs.token }}
5558
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
5659
- name: clean up caches on failure
5760
if: ${{ failure() || cancelled() }}

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ jobs:
2828
fetch-depth: 1
2929
- name: Build
3030
uses: ./.github/actions/build
31+
with:
32+
token: ${{ secrets.GRAPHQL_TOKEN }}
33+

.github/workflows/tag.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ jobs:
6262
fetch-depth: 1
6363
- name: Build
6464
uses: ./.github/actions/build
65+
with:
66+
token: ${{ secrets.GRAPHQL_TOKEN }}

0 commit comments

Comments
 (0)