Skip to content

Commit

Permalink
Update build-readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-A0 authored Oct 21, 2022
1 parent fcb283f commit d4f6382
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,23 @@ jobs:
Build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 1

- name: Use Node.js (dependency)
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16

- name: Completion Table
run: node ./.github/workflows/updateCompletionTable.js;

- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
run: echo name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT

- name: Push
if: steps.git-check.outputs.modified == 'true'
Expand Down

0 comments on commit d4f6382

Please sign in to comment.