fix(ci): move token definition to correct stage

This commit is contained in:
Paul Makles
2023-01-29 16:46:19 +00:00
parent c4b9884825
commit e780178cc0

View File

@@ -59,6 +59,7 @@ jobs:
with:
repository: revoltchat/api
path: api
token: ${{ secrets.PAT }}
- name: Download OpenAPI specification
if: github.event_name != 'pull_request'
@@ -71,5 +72,3 @@ jobs:
cwd: "api"
add: "*.json"
message: "chore: generate OpenAPI specification"
env:
GITHUB_TOKEN: ${{ secrets.PAT }}