Skip to content

Commit

Permalink
Update deployment of documentation workflow, and fix node_version to …
Browse files Browse the repository at this point in the history
…node-version
  • Loading branch information
rolljee committed Nov 29, 2023
1 parent b4ecaa6 commit 6280d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow-deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
shell: bash
id: extract-refs
run: |
echo "version=$(git describe --abbrev=0 --tags | cut -d. -f 1)" >> $GITHUB_OUTPUT
echo "major-version=$(jq -r .version package.json | cut -d. -f 1)" >> $GITHUB_OUTPUT
echo "repo=$(echo $GITHUB_REPOSITORY | cut -d/ -f 2)" >> $GITHUB_OUTPUT
- name: Trigger documentation workflow
Expand All @@ -97,7 +97,7 @@ jobs:
github_token: ${{ secrets.ACCESS_TOKEN_CI }}
workflow_file_name: child_repo.workflow.yml
ref: ${{ github.ref_name == 'master' && 'master' || 'develop' }}
client_payload: '{"repo_name":"${{ steps.extract-refs.outputs.repo }}","branch":"${{ github.head_ref }}","version":"${{ steps.extract-refs.outputs.version }}"}'
client_payload: '{"repo_name":"${{ steps.extract-refs.outputs.repo }}","branch":"${{ github.head_ref }}","version":"${{ steps.extract-refs.outputs.major-version }}"}'

dockerhub-deploy:
name: Build and deploy images to Dockerhub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Node version ${{ env.NODE_LTS_ACTIVE_VERSION }}
uses: actions/setup-node@v4
with:
node_version: ${{ env.NODE_LTS_ACTIVE_VERSION }}
node-version: ${{ env.NODE_LTS_ACTIVE_VERSION }}
cache: "npm"

- name: Install depedencies
Expand Down

0 comments on commit 6280d4e

Please sign in to comment.