Skip to content

Commit

Permalink
CI: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bulychev committed Aug 30, 2023
1 parent 8112683 commit e9fc354
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:

steps:
- name: Checkout Docs
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: documentation
token: ${{ secrets.DXROBOT_PAT }}
ssh-key: ${{ secrets.DXROBOT_SK }}
ref: ${{ github.ref_name }}

- name: Checkout DevExtreme
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: devextreme
repository: devexpress/devextreme
ref: ${{ github.ref_name }}
# ref: ${{ github.ref_name }}

- name: NPM - devextreme
working-directory: devextreme
Expand All @@ -37,34 +37,34 @@ jobs:
#Generation
- name: Discover declarations
working-directory: devextreme
#TODO: Workaround. This should be removed following the changes in devextreme monorepo
#TODO: Workaround. This should be removed following the changes in devextreme monorepo
run: |
if [[ ${{ github.ref_name }} == "23_2" ]]; then
cd ./packages/devextreme
npm run discover-declarations -- --artifacts ../../../artifacts/internal-tools
else
npm run discover-declarations -- --artifacts ../artifacts/internal-tools
fi
npm run tools:discover-declarations
# if [[ ${{ github.ref_name }} == "23_2" ]]; then
# npm run tools:discover-declarations
# else
# npm run discover-declarations -- --artifacts ./artifacts/internal-tools
# fi

- name: Update topics
working-directory: documentation
run: npm run update-topics -- --artifacts ../artifacts/internal-tools
run: npm run update-topics -- --artifacts ../devextreme/artifacts/internal-tools

- name: Generate additional topics
working-directory: documentation
run: npm run generate-extra-topic --artifacts ../artifacts/internal-tools
run: npm run generate-extra-topic --artifacts ../devextreme/artifacts/internal-tools

- name: Generate Syntax metadata
working-directory: documentation
run: npm run generate-syntax-data -- --artifacts ../artifacts/internal-tools
run: npm run generate-syntax-data -- --artifacts ../devextreme/artifacts/internal-tools

- name: Generate ContentMap
working-directory: documentation
run: npm run generate-content-map --artifacts ../artifacts/internal-tools
run: npm run generate-content-map --artifacts ../devextreme/artifacts/internal-tools

- name: Update links
working-directory: documentation
run: npm run update-links --artifacts ../artifacts/internal-tools
run: npm run update-links --artifacts ../devextreme/artifacts/internal-tools

#PR
- name: Configure Git
Expand All @@ -86,7 +86,7 @@ jobs:
git push --set-upstream origin $branch_name
escaped_pwd=$(echo $(pwd)/ | sed --expression 's/\//\\\//g')
cat ../artifacts/internal-tools/Readme.md | sed -e "s/$escaped_pwd//g" > prbody.md
cat ../devextreme/artifacts/internal-tools/Readme.md | sed -e "s/$escaped_pwd//g" > prbody.md
MAXSIZE=65536
FILESIZE=$(stat -c%s prbody.md)
Expand All @@ -113,5 +113,5 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: internal-tools-artifacts
path: artifacts/internal-tools/
path: ./devextreme/artifacts/internal-tools/
retention-days: 7
16 changes: 8 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ env.nodeVersion }}

Expand All @@ -39,10 +39,10 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ env.nodeVersion }}

Expand All @@ -65,10 +65,10 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ env.nodeVersion }}

Expand All @@ -94,10 +94,10 @@ jobs:
# steps:

# - name: Checkout
# uses: actions/checkout@v2
# uses: actions/checkout@v3

# - name: Setup Node.js
# uses: actions/setup-node@v2
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.nodeVersion }}

Expand Down

0 comments on commit e9fc354

Please sign in to comment.