From 24f61092fcf9c3aa33ed5cdfcc3606fe49ac3da6 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:07:20 -0500 Subject: [PATCH] fix(docs): tries to fix pipeline --- .github/workflows/_base.yml | 5 ++++- .github/workflows/ci.yml | 19 +++++++++++++++---- .../workflows/generate_writerside_docs.yml | 3 --- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/_base.yml b/.github/workflows/_base.yml index 3c7fc6c..9986417 100644 --- a/.github/workflows/_base.yml +++ b/.github/workflows/_base.yml @@ -6,6 +6,9 @@ on: node_version: type: string required: true + github_token: + type: string + required: true jobs: setup: @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4acda5..59db56d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/generate_writerside_docs.yml b/.github/workflows/generate_writerside_docs.yml index 4a44624..a410184 100644 --- a/.github/workflows/generate_writerside_docs.yml +++ b/.github/workflows/generate_writerside_docs.yml @@ -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