Skip to content

Commit

Permalink
fix(docs): tries to fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Sep 30, 2024
1 parent 21ac3e7 commit 24f6109
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
node_version:
type: string
required: true
github_token:
type: string
required: true

jobs:
setup:
Expand All @@ -15,7 +18,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ inputs.github_token }}
fetch-depth: 0

- name: Cache pnpm store
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ on:
branches:
- main

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: '18'
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WRITERSIDE_ARTIFACT: 'webHelpDCS2-all.zip'
WRITERSIDE_DOCKER_VERSION: '242.21870'
WRITERSIDE_INSTANCE: 'Writerside/dcs'

jobs:
setup:
uses: ./.github/workflows/_base.yml
with:
github_token: ${{ env.GITHUB_TOKEN }}
node_version: '18'

commitlint:
Expand All @@ -33,13 +42,15 @@ jobs:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/generate_writerside_docs.yml
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ env.GITHUB_TOKEN }}
writerside_instance: 'Writerside/dcs'
artifact_name: 'webHelpDCS2-all.zip'
docker_version: 242.21870

semantic-release:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/semantic_release.yml
with:
node_version: '18'
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ env.NPM_TOKEN }}
github_token: ${{ env.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/generate_writerside_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Build, Test, and Deploy Documentation
on:
workflow_call:
inputs:
skip_checkout:
type: boolean
default: false
github_token:
type: string
required: true
Expand Down

0 comments on commit 24f6109

Please sign in to comment.